From: Wolfgang Grandegger <wg@grandegger.com>
To: Amit Bhaira <a.hearthacker.b@gmail.com>
Cc: Xenomai@xenomai.org
Subject: Re: [Xenomai] (-_-)
Date: Sat, 02 Feb 2013 15:54:03 +0100 [thread overview]
Message-ID: <510D288B.60305@grandegger.com> (raw)
In-Reply-To: <CADyNBOrR0TRA_ejnb4LJMGZ-WmHwomBS+-YGhS1LOc1ekRf04A@mail.gmail.com>
On 02/02/2013 09:43 AM, Amit Bhaira wrote:
> Hey guys suppose I am having 5 same kind of devices, and i am writing
> a driver for them. Then where is should i register my
> device(rtdm_dev_regisger())?? in probe(once) or in init(5 times) ..
> and i will use it in probe all of them will be having same name so how
> would rt_dev_open() differentiate them ??
This is not much different to a normal Linux driver. In your platform,
pci or whatever probe function you call rtdm_dev_register(), where you
also provide a name for that device (rtdm_dev->device_name). Have a look
for example to:
http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/drivers/serial/rt_mpc52xx_uart.c#1276
Wolfgang.
next prev parent reply other threads:[~2013-02-02 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-02 8:43 [Xenomai] (-_-) Amit Bhaira
2013-02-02 14:54 ` Wolfgang Grandegger [this message]
2013-02-02 15:46 ` Amit Bhaira
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=510D288B.60305@grandegger.com \
--to=wg@grandegger.com \
--cc=Xenomai@xenomai.org \
--cc=a.hearthacker.b@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.