Re: generic platform device question

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

 



On 6/13/06, kaustav.majumdar@xxxxxxxxx <kaustav.majumdar@xxxxxxxxx> wrote:
Hi all,

I was curious about the following doubts:

1. In presence of multiple devices, whether multiple instances of the
driver (which drives the device) will be created?


i believe not.

if the device is of plug 'n' play type, a probe function inside the
driver is called when a new device is inserted and the rest is upto
it. kernel makes no separate instances of the driver.

if the device is not plug 'n' play, you have to manually detect and
configure the device and required data structures while loading the
driver.

2. If so, then whether multiple instances of a global variable defined
in the driver module will be created? In this case, whether there is any
dependency upon static qualifier for that global variable?

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