lkml.org 
[lkml]   [2006]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectstruct platform and struct device queries
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-17 14:52    [W:0.134 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site