Re: Function Pointer Question

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

 



> I looked in to it and the kernel seems to be one of the few places where this is done along with in line functions.  Why do we need function pointers in the kernel, outside of device drivers is my real question and is there any way to do the code using them without function pointers at all, I am assuming no.

Suppose you are registering a pci driver, and you are telling the pci
layer that function xyz()  is your probe function. incidentally, there
is also another driver which is also having a probe function called
xyz(). if you do not give the pointer to your function and pci layer
starts calling the functions by its name , then which xyz() should be
executed now???

regards
sudip

> Thanks,
> Nick

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[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