[Date Prev][Date Next] [Chronological] [Thread] [Top]

[rtl] rt fifo



recently, my rt module failed with a null pointer error (thankfully it
didn't crash the machine), but it must have left some fifo information
hanging around in the kernel. This is what happened:

FYI: rt_proc.o: a module with a RT task init 
        the task sends data down a RT fifo
       monitor: a normal linux program that reads the data and passes it
back to the RT task through a _different_ pipe.


insmod rt_proc.o

<<everything is ok >>

./monitor

<< this opens up /dev/rtf1 and /dev/rtf2 >>

<< bad programming causes rt_proc.o to dump >>

killall monitor

<< this complains that the pipes aren't working >>

rmmod rt_proc

<< this is ok >>

insmod rt_proc.o

<< this is ok >>

./monitor

error: Cannot open /dev/rtf1.

the only way to fix it is to reboot. 

I'm thinking that when the module died, it left some rubbish about the
fifos somewhere...

the funny thing about it is, when I load rt_proc.o the second time, it
opens the pipes OK, but the normal linux program "monitor" cannot.

Is there another way of resetting the fifos other than rebooting?


regards
Jake

-
MrJ

Jake Hawkes
Computer Systems Engineering
http://melnibone.levels.unisa.edu.au/~mrj
hawjd001@students.unisa.edu.au
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu