Mr. Alvarez, > Hmmm... This is very interesting. > > Can somebody point me to the documentation for fifo handlers > running within a > Linux context? The man page only says: > > "The handler is executed with the Linux (i.e., lowest) priority."
I can point you towards rtl_fifo.c in the RTLinux source where it is obvious, but I am afraid I can not point you towards any such documentation. The handler is, in fact, run by the function that handles putting data into the FIFO. This is obviously running in the Linux kernel space. > So what functions can I call from within a FIFO handler? Almost none of the RTLinux functions are kosher at this point. There used to be a good web page out there that showed what you could run in which context, but I will be darned if I can find it now. Anyone know where this is? > In > particular, am I allowed to use rtl_no_interrupts and > rtl_printf? (The second > seems to have > been at least partly responsible for my problems). I am absolutely certain that rtl_printf in a FIFO handler is bad news. There are many more limitations to rtl_printf, but they are not specific to FIFO handlers so I will ignore them here. As for rtl_no_interrupts it should be "safe" - it is defined as inline assembly that just executes a few instructions. I say "safe" because it should not cause a kernel crash or any such. It is not "safe" in that you will prevent the RTLinux scheduler from running. Thus you will lose the real-time performance which caused you to choose RTLinux in the first place. Regards, Steve -------------------------- Stephen D. Cohen Engineering Manager Xybion Sensor Positioning Systems 11528 53rd Street North Clearwater, FL 33760 Voice: (727) 299-0150 Fax: (727) 299-0804 [EMAIL PROTECTED] www.xybion.com *********************************************************************** This email, and any attachments, contains confidential and privileged information intended for the use of the addressee. If you are not the intended recipient or an authorized representative of the recipient, do not read or distribute the contents of this email and delete it from your system. This email and all attachments have been scanned for viruses and are believed to be virus free. However, it is the recipient's responsibility to ensure that they are virus free. Xybion does not accept any responsibility for any loss or damage arising in any way from use of this email and attachments. Xybion also does not accept responsibility for personal email or email not associated with its business purposes. *********************************************************************** _______________________________________________ Rtl mailing list [EMAIL PROTECTED] http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl