mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* struct platform and struct device queries
@ 2006-05-17 12:50 Ram
  0 siblings, 0 replies; only message in thread
From: Ram @ 2006-05-17 12:50 UTC (permalink / raw)
  To: linux-kernel

Hi,
 I am writing a device driver:

 In the probe function i have to give a parameter struct
platform_device * pdev.

 when is the probe function called?. It is not called at
initialisation time (module loading)


 suppose i have a situation where in i need to probe when the module
is inserted how do i do it?


 is it possible to get a struct platform * in the init function of the
driver?.


 Is there any call to get a struct platform * ?


 Also i want to know if it is possible to get a struct device * frtom
any call. i need a struct device * call some functions.

 How do i get it?.


 I know if the upper layer (could be kernel generic code) calls my
driver probe function - it passes a struct platform * or struct device
*.


But, is there any call to get it calling from the init function.


If so, how ?



Please advice,



Regards,
sriram

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-17 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-17 12:50 struct platform and struct device queries Ram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®