From: Stacy Prowell Date: Wed, 15 Sep 2021 20:05:26 +0000 (-0400) Subject: Fixed parameter name for hello-5. X-Git-Tag: latest~100^2 X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=728b7fd43214ad6c04123b8a587e80046ce062c8;p=lkmpg Fixed parameter name for hello-5. Parameters are case-sensitive, so myintArray is different from myintarray, and people who are running the example with copy/paste will find it doesn't work as described in the text. --- diff --git a/lkmpg.tex b/lkmpg.tex index 2a91ada..1d6da74 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -411,26 +411,26 @@ It takes two parameters: a variable name and a free form string describing that I would recommend playing around with this code: \begin{code} -$ sudo insmod hello-5.ko mystring="bebop" myintArray=-1 +$ sudo insmod hello-5.ko mystring="bebop" myintarray=-1 myshort is a short integer: 1 myint is an integer: 420 mylong is a long integer: 9999 mystring is a string: bebop -myintArray[0] = -1 -myintArray[1] = 420 -got 1 arguments for myintArray. +myintarray[0] = -1 +myintarray[1] = 420 +got 1 arguments for myintarray. $ sudo rmmod hello-5 Goodbye, world 5 -$ sudo insmod hello-5.ko mystring="supercalifragilisticexpialidocious" myintArray=-1,-1 +$ sudo insmod hello-5.ko mystring="supercalifragilisticexpialidocious" myintarray=-1,-1 myshort is a short integer: 1 myint is an integer: 420 mylong is a long integer: 9999 mystring is a string: supercalifragilisticexpialidocious -myintArray[0] = -1 -myintArray[1] = -1 -got 2 arguments for myintArray. +myintarray[0] = -1 +myintarray[1] = -1 +got 2 arguments for myintarray. $ sudo rmmod hello-5 Goodbye, world 5