Skip to content

Commit 09e636c

Browse files
authored
Merge pull request #107 from sprowell/master
Fixed parameter name for hello-5.
2 parents 7fd696c + 728b7fd commit 09e636c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lkmpg.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,26 +411,26 @@ \subsection{Passing Command Line Arguments to a Module}
411411

412412
I would recommend playing around with this code:
413413
\begin{code}
414-
$ sudo insmod hello-5.ko mystring="bebop" myintArray=-1
414+
$ sudo insmod hello-5.ko mystring="bebop" myintarray=-1
415415
myshort is a short integer: 1
416416
myint is an integer: 420
417417
mylong is a long integer: 9999
418418
mystring is a string: bebop
419-
myintArray[0] = -1
420-
myintArray[1] = 420
421-
got 1 arguments for myintArray.
419+
myintarray[0] = -1
420+
myintarray[1] = 420
421+
got 1 arguments for myintarray.
422422
423423
$ sudo rmmod hello-5
424424
Goodbye, world 5
425425

426-
$ sudo insmod hello-5.ko mystring="supercalifragilisticexpialidocious" myintArray=-1,-1
426+
$ sudo insmod hello-5.ko mystring="supercalifragilisticexpialidocious" myintarray=-1,-1
427427
myshort is a short integer: 1
428428
myint is an integer: 420
429429
mylong is a long integer: 9999
430430
mystring is a string: supercalifragilisticexpialidocious
431-
myintArray[0] = -1
432-
myintArray[1] = -1
433-
got 2 arguments for myintArray.
431+
myintarray[0] = -1
432+
myintarray[1] = -1
433+
got 2 arguments for myintarray.
434434
435435
$ sudo rmmod hello-5
436436
Goodbye, world 5

0 commit comments

Comments
 (0)