Re: [rtl] select function in user space fifo read

2000-06-30 Thread Jürgen Appel
>Would someone please write me a code snippet which shows the proper >usage of the select function when used to wait for data to be sent to a fifo >from kernel-space. Here you are: fd_set rfds; int fd_control,fd_data,fd_error; if ((fd_data = open(RT_FIFO_DATA, O_RDONLY)) <

Re: [rtl] select function in user space fifo read

2000-06-30 Thread Pavel Andris
Hi Daniel, I think the reply will be the same for RTL & RTAI users :-). On Thu, Jun 29, 2000 at 08:31:15PM -0500, daniel sheltraw wrote: > Hello RTAIers > > Would someone please write me a code snippet which shows the proper > usage of the select function when used to wait for data to be sent t

[rtl] select function in user space fifo read

2000-06-29 Thread daniel sheltraw
Hello RTAIers Would someone please write me a code snippet which shows the proper usage of the select function when used to wait for data to be sent to a fifo from kernel-space. Does select to a busy-wait? Thanks, Daniel G