Re: Can functions defined in module be called in compiled kernel?

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

 




Standard solution is as follows:

variable declaration:
(*myFunc)(struct skbuff *)=0;

usage:
if(myFunc)
{
  myFunc(skb);
}

On many legal situations there are valid entry-points that can be
registered and they get called under certain circumstances. Look out for
them before you hardcode inside the kernel.



On Mon, 4 Mar 2002, Amit Kucheria wrote:

> Hi,
> 
> I have some code in the kernel which needs to call functions defined in 
> modules. How can i achieve this without getting "Unresolved dependencies" 
> during linking of the kernel.
> 


--
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