roux jean-denis wrote:
>
> Hi guys,
>
> I have a problem with the initialization of an
> handler under RTAI with the rt_request_srq.
> rt_request_srq(void *(handler)(void))
>
> The thing is that the rt_request_srq(Handler) where
> Handler is defined as void Handler(void) returns the
> error EINVAL which means that the handler is NULL.
>
Hi Jean-denis,
I'm not sure if I have understood the question correctly, but you must
pass a valid pointer to the function into the rt_request_srq. So
whether the function is a void x(void) or some other signature, the
value of x should resolve to be a valid pointer (not NULL). So you
would call the function: rt_request_srq(x);
Regards, Stuart
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/