Here's something I threw together over the past few days.

I was very frustrated by the fifo allocation system under RTlinux -
each process was statically bound to a /dev/rtfxx minor.  For a deeply
embedded system, this is fine.  But I wanted to be able to dynamically 
load and unload processes, with some way for user level programs to
find their favourite real time task.

I believe I have accomplished that goal.

If you use the rtfa_alloc() and rtfa_destroy() functions instead of
rtf_create() and rtf_destroy(), then the file "/proc/rtf" will contain 
a line of the form "<fifo-minor> <name>".  rtfa_alloc() begins
allocation at minor number RTFA_BEGIN, currently set to 48 (giving 16
fifos for the dynamic allocation system, and backwards compatibility
with the static system).

The patch is attached!  I'd be happy if anyone who applies this patch
and uses it lets me know.

patch for RT linux

Reply via email to