WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: kernel modules and modprobe parameters  (Read 98 times)

Offline harig2

  • Newbie
  • *
  • Posts: 1
kernel modules and modprobe parameters
« on: July 02, 2020, 03:23:56 PM »
I'm trying to figure out the creation and loading of kernel modules using modprobe.  I have loaded a TinyCore 11.1 on a Winsystem C412 on a flash drive.  I have loaded openssh and can putty in to the system. I have loaded Busybox-httpd and created an Angular 10 web app that works.  I loaded compile.tzc and other extensions to create simple sample programs. I have even compiled and loaded a hello world kernel sample, which loads using the insmod or modprobe, from the site newbielink:https://tldp.org/LDP/lkmpg/2.6/html/x323.html [nonactive],  So far all is great...except for one thing.

I would like to know what I'm doing wrong that when I load the module using modprobe, that the parameter(s) being passed in are not changed. The default value that is assigned in the c program is what is displayed in dmesg, and not the values that i passed using modprobe.  I know things are sort of working because when i run `sudo modprobe hello_5 myint=6' and then check `dmesg`, I see that the Module loaded, I even see a file `/sys/module/hello_5/parameters/myint` with a value of 240 the init value from the program.  I expect to see `6`, so why is modprobe not changing the value?

thanks
George