Re: call insmod in C program
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 09:16:35 +0200
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
.
- Follow-Ups:
- Re: call insmod in C program
- From: Tilman Schmidt
- Re: call insmod in C program
- References:
- call insmod in C program
- From: mbm
- Re: call insmod in C program
- From: Tilman Schmidt
- call insmod in C program
- Prev by Date: Manipulation of block driver queue
- Next by Date: Re: Manipulation of block driver queue
- Previous by thread: Re: call insmod in C program
- Next by thread: Re: call insmod in C program
- Index(es):