Re: undefined reference

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

 



On Tue, May 06, 2003 at 10:48:20PM +0200, Jurgens du Toit wrote:
> the mycache function is defined in my kernel module.
> 
> How should it be defined to get the kernel to recognise the call, and 
> implement it IF the module is loaded?

If it meshes with one of the existing kernel interface, you need to
call the "register" function. For example, to get the kernel to call
your "open" function when someone opens the corresponding device file,
you would call register_chrdev(), supplying a structure of function
pointers, one of which is to your module's open function. 

If there isn't an existing kernel interface, you would need to
introduce such an interface, which allows registering and
unregistering... what does "mycache" do?  
-- 
Muli Ben-Yehuda
http://www.mulix.org

Attachment: pgp00394.pgp
Description: PGP signature


[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