- To: Michael Barabanov <baraban@fsmlabs.com>
- Subject: Re: [rtl] RT FIFOs and FIFO handlers
- From: Ken Ramey <kramey@as.arizona.edu>
- Date: Tue, 19 Jun 2001 14:23:26 -0700
- References: <20010619223910.A8378@fsmlabs.com>
Michael Barabanov wrote: > You need to use rtf_create_rt_handler, not rtf_create_handler. > According to the man page for rtf_create_rt_handler(), it is used to set up a handler which is triggered whenever rtf_put() or rtf_get() is executed by an rt process. That is not what I am trying to do. I need a handler to be triggered when read() or write() are called by a non-rt process. The documentation says that this is what rtf_create_handler() is for. Reading the document more closely, however, reveals an explanation that says this facility is used in conjunction with rtf_get() to read data from the FIFO, after it is put there with a write(). My problem is the opposite. I want to put data into the FIFO, _from the rt side_ only when the Linux process is ready to read it. In other words... when it executes a read(). It appears that what I am trying to do is not supported by RTLinux. If anyone can either confirm that or show me the error of my ways and explain how it _can_ be done, I'd appreciate it. Thanks. Ken