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}
411411
412412I 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
415415myshort is a short integer: 1
416416myint is an integer: 420
417417mylong is a long integer: 9999
418418mystring 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
424424Goodbye, 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
427427myshort is a short integer: 1
428428myint is an integer: 420
429429mylong is a long integer: 9999
430430mystring 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
436436Goodbye, world 5
You can’t perform that action at this time.
0 commit comments