Re: system call for init_module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 20, 2001 at 09:04:01AM +0800, wctan@netwxs.com.my wrote:

> Can anyone tell me how should I use the system call init_module
> in an application?  What I wanted to do is to load a module in
> my C application without calling system ( "insmod something.o"

it is not a simple business (look at the modutils code).

I recommend you just invoke /sbin/modprobe something.o (though I would
use fork/exec instead).

regards
john

-- 
"If you're not part of the problem, you're part of the problem space." 
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux