Re: module in kernel

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

 



On Tue, 2005-03-01 at 15:31 +0100, Paolo Perego wrote:
> As usual, a lot of IMHO indeed my words...
> 1. If I correct understood your problem you acquire the parameter p in a
> module A and then calulation over p are done in a module B. In this case
> you can EXPORT_SYMBOL in B function performing calculation, modprobing B
> before A and then recalling B's routine in the A module. The routine
> will be visible because you exported it :)
> 2. You've got a running kernel and your module A. If you want to load
> module A you've got ONE way: using modprobe. If you want to recompile
there's one more - insmod :), though modprobe  would eventually call
insmod....so not really different from what you said...but slightly
shorter! :)
> the whole kernel including A code, A is not a module anymore and you
> must play with Makefile and some #ifdef clause inside A's code.
only one "play" required :) ....the symbol MODULE is not defined for
built-in stuff...
> 
> Ciao ciao
> sp0nge
> On Tue, 2005-03-01 at 10:14 +0000, sounak chakraborty wrote:
> >   dear all
> > i want to write a module that will take the parameter task_struct p
> > and calulate some values 
> > my question is 
> > 1.how to pass the parameter from a function to a separate module
> > 
> > 2.i think there are 2 ways to load the module one is through insmod in
> > a compiled kernel and the other one is building a module which is
> > embedded in the kernel while compiling itself, how to do this one?
> > thanks
> > sounak
> > 
> > 
> > 
> > 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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