From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Poole Jr, Donald R." <donald.poole@swri.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Xenomai RTDM Driver /dev/ Population
Date: Mon, 28 Jan 2013 16:14:52 +0100 [thread overview]
Message-ID: <510695EC.9080407@siemens.com> (raw)
In-Reply-To: <E9605457112439448B6B3ED284E065333175B15C@mbx256-1.adm.swri.edu>
On 2013-01-28 15:52, Poole Jr, Donald R. wrote:
> Hello All,
>
> I'm currently writing a driver using the Xenomai RTDM API, but had a question regarding where in the /dev/ hierarchy the driver gets instantiated. When I do an ls –l on the /dev/ folder. I don't see my driver listed below is my device structure:
>
> static struct rtdm_device gpe_device = {
> .struct_version = RTDM_DEVICE_STRUCT_VER,
>
> .device_flags = RTDM_NAMED_DEVICE,
> .context_size = sizeof(context_t),
> .device_name = DEVICE_NAME,
>
> .open_nrt = pwm_rtdm_open_nrt,
>
> .ops = {
> .close_nrt = pwm_rtdm_close_nrt,
> .read_nrt = pwm_rtdm_read_nrt,
> .write_nrt = pwm_rtdm_write_nrt,
> },
>
> .device_class = RTDM_CLASS_EXPERIMENTAL,
> .device_sub_class = SOME_SUB_CLASS,
> .profile_version = 1,
> .driver_name = "GPE",
> .driver_version = RTDM_DRIVER_VER(0, 1, 2),
> .peripheral_name = "GPIO PWM Engine (GPE)",
> .provider_name = "Donald R. Poole, Jr.",
> .proc_name = gpe_device.device_name,
> };
>
> Could anyone point me in the right direction to see what it is that I might be doing wrong? Thanks in advance.
RTDM devices aren't registered with the Linux VFS layer. They live in
their own space, managed by Xenomai, addressable via Native's
rt_dev_open or the wrapped POSIX open call. The POSIX skin allows you to
address them as "/dev/mydevice" as well, but it acutally cuts "/dev/"
off before doing the open via RTDM.
Check /proc/xenomai/rtdm/named_devices to see if your device was registered.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2013-01-28 15:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E9605457112439448B6B3ED284E065333175A92A@mbx256-1.adm.swri.edu>
2013-01-28 14:52 ` [Xenomai] Xenomai RTDM Driver /dev/ Population Poole Jr, Donald R.
2013-01-28 15:14 ` Jan Kiszka [this message]
2013-01-28 16:05 ` Poole Jr, Donald R.
2013-01-28 16:15 ` Jan Kiszka
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=510695EC.9080407@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=donald.poole@swri.org \
--cc=xenomai@xenomai.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 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.