[Xenomai-help] blocked or not blocked call on snippet/shared_mem.c?

Paolo Mantegazza mantegazza at aero.polimi.it
Thu Jan 19 19:34:45 CET 2006


Rodrigo Rosenfeld Rosas wrote:
> Thanks for clarifying!
> I think I got the point.
> 
> Regards,
> 
> Rodrigo.
> 

Trolling or vulturing?

Paolo.

> ____________________________________________________________
> Em Quarta 18 Janeiro 2006 19:58, você escreveu:
> 
> 
>>>I'm confused. Did you really mean TM_NONBLOCK?
>>>Am I missing something?
>>
>>I think you have to read it like this:
>>
>>      Bind to a shared heap which has been created elsewhere, either
>>      in kernel or user-space. The call will block us until such heap
>>      is created with the expected name.
>>
>>      Therefore (because we do not want (and are probably unable to, see
>>below)), we supply TM_NONBLOCK.
>>
>>      The heap should have been
>>      created with the H_SHARED mode set, which is implicit when
>>      creation takes place in user-space.
>>
>>Additionally, I think the process wouldn't even block if requested because
>>it is not a Xenomai thread. Use rt_task_shadow() to promote it. Make sure
>>you have a suitable bailout mechanism if you happen to start waiting
>>indefinitely.
>>
>>
>>Jeroen.
> 
> 
> 	
> 
> 	
> 		
> _______________________________________________________ 
> Yahoo! doce lar. Faça do Yahoo! sua homepage. 
> http://br.yahoo.com/homepageset.html 
> 
> 
> _______________________________________________
> RTAI mailing list
> RTAI at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
> 






More information about the Rtai mailing list