about send in rtems_timer_service_routine

powerain powerain at foxmail.com
Mon Apr 21 01:08:27 UTC 2008


I also think so. and I have used a rtems_timer_server instead.
but it does not work as before.


2008-04-21 



powerain 



发件人: Daron Chabot 
发送时间: 2008-04-21  00:10:26 
收件人: powerain 
抄送: RTEMS Users; rayx.cn at gmail.com 
主题: Re: about send in rtems_timer_service_routine 
 
Not having checked send(2) for blocking behavior, this is just a guess:

The function, rtems_timer_service_routine( ), is called from an  
interrupt context. Code called from an interrupt context *cannot*  
perform operations that may block waiting for resources (i.e. send(2)).

You could use an rtems_timer_server instead: this server runs in a  
thread context which has no restrictions on the methods invoked from it.

(see http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.8.0/share/ 
rtems/html/c_user/c_user00116.html)

-- dc

On 20-Apr-08, at 2:16 AM, Ray wrote:
> Dear  powerain ,
> Maybe you should check this website first
> http://linuxmafia.com/faq/Essays/smart-questions.html
> here is a mandarin version
> http://www.linuxforum.net/doc/smartq-grand.html
>
> BTW, it seems to me that rtems_timer_service_routine=void if I read  
> code correct
>
> Thanks & Best Regards!
>
> Ray, rayx.cn at gmail.com
> 2008-04-20
>
>
> =========================
> ----- Receiving the following content -----
> =========================
> From:  powerain
> Receiver:  rtems-users
> Time: 2008-04-20, 09:25:20
> Subject: about send in rtems_timer_service_routine
>
>
>
>
> > hi everyone,
> > i send a package in a rtems_timer_service_routine using send  
> > function by a socket.
> > but is does not work.
> > who tell me why.
> > thanks very much.
> >
> > 2008-04-20
> >
> >
> > _____________________ next part ______________________
> >
> > _______________________________________________
> > rtems-users mailing list
> > rtems-users at rtems.com
> > http://rtems.rtems.org/mailman/listinfo/rtems-users
> >
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20080421/1a317d23/attachment.html>


More information about the users mailing list