From: Ram <vshrirama@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: struct platform and struct device queries
Date: Wed, 17 May 2006 05:50:28 -0700 [thread overview]
Message-ID: <8bf247760605170550v1ff7562aqdfce165daaeb0f02@mail.gmail.com> (raw)
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
reply other threads:[~2006-05-17 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8bf247760605170550v1ff7562aqdfce165daaeb0f02@mail.gmail.com \
--to=vshrirama@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®