On Wednesday 11 April 2007 17:35, Dmitry Adamushko wrote:
> On 11/04/07, Jeff Weber <[EMAIL PROTECTED]> wrote:
> > Are there any restrictions against calling the Linux kernel, namely
> > do_gettimeofday(), from a Xenomai kernel task?
> >
> > Does the kernel space task switch from primary to secondary mode, just as
> > a user space task would?
>
> No.
Ok, so is a Xenomai kernel-based thread essentially locked into primary mode?  
And if so, would calls to rt_task_set_mode(T_PRIMARY,0,0) then be illegal?
>
> Regarding the use of Linux kernel functions, consider it from the
> point that your rt task (in general, any activity from the primary
> domain) could have interrupted the Linux kernel at any (well, almost)
> point.. i.e. some spin_locks can be held by the kernel and if you
> happen to call a function from the primary domain that does use these
> locks - well, nothing good is going to happen. In general, it's a no
> go.
What's the best general way to describe the list of functions that can use 
these locks, so I can avoid this scenario in the future?

        Jeff

_______________________________________________
Xenomai-help mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to