RTDM and possible bug
Hi Jan,
I'm getting the following message from kernel:
Xenomai: RTDM: no non-RT close handler
Error registering RTDM device
But I am using only a RT open handler and a RT close handler. The documentation states:
"rtdm_close_handler_t close_nrt
Close handler for non-real-time contexts, optional if close_rt is non-NULL."
which is my case.
Am I missing something?
I'll take a closer look at RTDM source-code, but maybe you can enlight me until there.
Thanks,
Rodrigo.
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html
Quoted 6 lines · Rodrigo Rosenfeld Rosas
Hi Jan,
I'm getting the following message from kernel:
Xenomai: RTDM: no non-RT close handler
Error registering RTDM device
Quoted 7 lines
But I am using only a RT open handler and a RT close handler. The documentation states:
"rtdm_close_handler_tclose_nrt
Close handler for non-real-time contexts, optional ifclose_rtis non-NULL."
which is my case.Am I missing something?
Nope, it's bug in the documentation. Do you actually depend on RT context for cleanup?
I recently decided to enforce a non-RT closure handler on registration. This is required to be able to do the
echo file_descriptor > /proc/xenomai/rtdm/open_fildes
dance on forgotten file descriptors and to implement on day an automatic closure on process termination.
The doc is now fixed, thanks for reporting.
Quoted 9 lines
I'll take a closer look at RTDM source-code, but maybe you can enlight me until there.
Thanks,
Rodrigo.
Jan
Quoted 13 lines
Quoted 12 lines · Rodrigo Rosenfeld Rosas
Hi Jan,
I'm getting the following message from kernel:
Xenomai: RTDM: no non-RT close handler
Error registering RTDM deviceBut I am using only a RT open handler and a RT close handler. The documentation states:
"rtdm_close_handler_tclose_nrt
Close handler for non-real-time contexts, optional ifclose_rtis
non-NULL." which is my case.
Quoted 4 lines
Quoted 1 line
Am I missing something?
Nope, it's bug in the documentation. Do you actually depend on RT context for cleanup?
For now, I can't think a reason I would need RT context for cleaning up. Actually, I do nothing for now on cleanup.
Quoted 9 lines
I recently decided to enforce a non-RT closure handler on registration. This is required to be able to do the
echo
file_descriptor>/proc/xenomai/rtdm/open_fildesdance on forgotten file descriptors and to implement on day an automatic closure on process termination.
The doc is now fixed, thanks for reporting.
Ok, I'll add a non-RT close handler to my driver.
Thanks,
Rodrigo.
_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html