* [Xenomai] Xenomai RTDM Driver /dev/ Population [not found] <E9605457112439448B6B3ED284E065333175A92A@mbx256-1.adm.swri.edu> @ 2013-01-28 14:52 ` Poole Jr, Donald R. 2013-01-28 15:14 ` Jan Kiszka 0 siblings, 1 reply; 4+ messages in thread From: Poole Jr, Donald R. @ 2013-01-28 14:52 UTC (permalink / raw) To: xenomai@xenomai.org 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. Thanks, Donald R. Poole, Jr. Research Engineer Voice: 210.522.3131 | Fax: 210.522.4931 Tactical Networks & Communications (tacticalnetworks.swri.org) Southwest Research Institute (SwRI) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Xenomai RTDM Driver /dev/ Population 2013-01-28 14:52 ` [Xenomai] Xenomai RTDM Driver /dev/ Population Poole Jr, Donald R. @ 2013-01-28 15:14 ` Jan Kiszka 2013-01-28 16:05 ` Poole Jr, Donald R. 0 siblings, 1 reply; 4+ messages in thread From: Jan Kiszka @ 2013-01-28 15:14 UTC (permalink / raw) To: Poole Jr, Donald R.; +Cc: xenomai@xenomai.org 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Xenomai RTDM Driver /dev/ Population 2013-01-28 15:14 ` Jan Kiszka @ 2013-01-28 16:05 ` Poole Jr, Donald R. 2013-01-28 16:15 ` Jan Kiszka 0 siblings, 1 reply; 4+ messages in thread From: Poole Jr, Donald R. @ 2013-01-28 16:05 UTC (permalink / raw) To: Jan Kiszka; +Cc: xenomai@xenomai.org Thanks Jan for clarifying this for me. Where in the documentation does it make mention of this? Donald R. Poole, Jr. Research Engineer Voice: 210.522.3131 | Fax: 210.522.4931 Tactical Networks & Communications (tacticalnetworks.swri.org) Southwest Research Institute (SwRI) On 1/28/13 9:14 AM, "Jan Kiszka" <jan.kiszka@siemens.com> wrote: >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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Xenomai RTDM Driver /dev/ Population 2013-01-28 16:05 ` Poole Jr, Donald R. @ 2013-01-28 16:15 ` Jan Kiszka 0 siblings, 0 replies; 4+ messages in thread From: Jan Kiszka @ 2013-01-28 16:15 UTC (permalink / raw) To: Poole Jr, Donald R.; +Cc: xenomai@xenomai.org On 2013-01-28 17:05, Poole Jr, Donald R. wrote: > Thanks Jan for clarifying this for me. Where in the documentation does it > make mention of this? Check doc/nodist/pdf/RTDM-and-Applications.pdf, though I'm not sure anymore if it was state there that explicitly. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-28 16:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2013-01-28 16:05 ` Poole Jr, Donald R.
2013-01-28 16:15 ` Jan Kiszka
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.