WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline harig2

  • Newbie
  • *
  • Posts: 1
kernel modules and modprobe parameters
« on: July 02, 2020, 06: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 https://tldp.org/LDP/lkmpg/2.6/html/x323.html,  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   

Offline gadget42

  • Hero Member
  • *****
  • Posts: 788
Re: kernel modules and modprobe parameters
« Reply #1 on: April 29, 2022, 03:57:41 AM »
searched for 'why is modprobe not changing the value?' and this was the first result i received:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-setting_module_parameters

sharing is caring
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580