#include <rtl_fifo.h> int rtf_link_user_ioctl(unsigned int fifo, int (*handler)(unsigned int fifo, unsigned int cmd, unsigned long arg)); |
rtf_link_user_ioctl routes ioctl(3) calls on the RT-FIFO fifo Linux character device to the function handler in a real-time program. The handler is passed the request and an argument specified in the call to the ioctl. The return value of the handler is used as the return value of the ioctl call.
To uninstall the ioctl(3) handler, pass NULL as the handler value. The handler is also uninstalled on rtf_destroy.
The RT-FIFO is a mechanism, implemented as a character device, to communicate between realtime tasks and ordinary Linux processes. The rtf_* functions are used by the realtime tasks; Linux processes use standard character device access functions such as read(2), write(2) and select(2).
©2001 FSMLabs Inc.
All rights reserved.