Re: call insmod in C program



Tilman Schmidt wrote:
mbm schrieb:
I need to insert kernel modules from a C application , is it possible
to do that without calling system("insmod ..")

You need the init_module() system call. See "man 2 init_module" for
details, and modprobe.c in module-init-tools for a working example.

IIRC modprobe calls insmod after having resolved dependencies.

--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.