All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RTDM and possible bug
@ 2006-01-24 22:19 Rodrigo Rosenfeld Rosas
  2006-01-25  1:41 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-01-24 22:19 UTC (permalink / raw)
  To: xenomai

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 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] RTDM and possible bug
  2006-01-24 22:19 [Xenomai-help] RTDM and possible bug Rodrigo Rosenfeld Rosas
@ 2006-01-25  1:41 ` Jan Kiszka
  2006-01-25 12:08   ` Rodrigo Rosenfeld Rosas
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2006-01-25  1:41 UTC (permalink / raw)
  To: Rodrigo Rosenfeld Rosas; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]

Rodrigo Rosenfeld Rosas wrote:
> 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?

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.

> 
> I'll take a closer look at RTDM source-code, but maybe you can enlight me 
> until there.
> 
> Thanks,
> 
> Rodrigo.
> 
> 

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] RTDM and possible bug
  2006-01-25  1:41 ` Jan Kiszka
@ 2006-01-25 12:08   ` Rodrigo Rosenfeld Rosas
  0 siblings, 0 replies; 3+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-01-25 12:08 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

>Rodrigo Rosenfeld Rosas wrote:
>> 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?
>
>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.

>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.

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 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-25 12:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-24 22:19 [Xenomai-help] RTDM and possible bug Rodrigo Rosenfeld Rosas
2006-01-25  1:41 ` Jan Kiszka
2006-01-25 12:08   ` Rodrigo Rosenfeld Rosas

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.