File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -411,26 +411,26 @@ \subsection{Passing Command Line Arguments to a Module}
411
411
412
412
I would recommend playing around with this code:
413
413
\begin {code }
414
- $ sudo insmod hello-5 .ko mystring="bebop" myintArray =-1
414
+ $ sudo insmod hello-5 .ko mystring="bebop" myintarray =-1
415
415
myshort is a short integer: 1
416
416
myint is an integer: 420
417
417
mylong is a long integer: 9999
418
418
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 .
422
422
423
423
$ sudo rmmod hello-5
424
424
Goodbye, world 5
425
425
426
- $ sudo insmod hello-5 .ko mystring="supercalifragilisticexpialidocious" myintArray =-1 ,-1
426
+ $ sudo insmod hello-5 .ko mystring="supercalifragilisticexpialidocious" myintarray =-1 ,-1
427
427
myshort is a short integer: 1
428
428
myint is an integer: 420
429
429
mylong is a long integer: 9999
430
430
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 .
434
434
435
435
$ sudo rmmod hello-5
436
436
Goodbye, world 5
You can’t perform that action at this time.
0 commit comments