This is a patch I submitted months ago. It lets you find out size information on an rt fifo by way of two new ioctls:
IOCTL_RTF_GET_BUFSIZE : returns the size of the fifo buffer (its maximal capacity) IOCTL_RTF_GET_FREE : returns the number of bytes free in the fifo buffer I found that this patch is useful for people that are concerned with monitoring the amount of dropped information between the rt-task and the user task in case one is too fast or too slow for the other. It also helps make code kind of simpler by allowing you to figure out how big a buffer you should read() into when reading off a fifo. (So as to avoid reading() too many times). I have tested it and it works.. please advise if it passes your quality criteria and/or if it makes it into the next version. -Calin On Sun, 21 Apr 2002 [EMAIL PROTECTED] wrote: > > The much delayed 3.2 release is in the works. This will not add > major changes, but will collect many of the patches sent to this list > and whatever else seems interesting. > > If you have materials you want included > core code and patches > drivers > docs and doc translations > short notes on your projects > > Please email links and data to this list or to me directly. > > My intention is to also make the long promised transition to BitKeeper > on this release. > > > --------------------------------------------------------- > Victor Yodaiken > Finite State Machine Labs: The RTLinux Company. > www.fsmlabs.com www.rtlinux.com > > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] > -- > For more information on Real-Time Linux see: > http://www.rtlinux.org/ >
rtlinux-3.1_rtf_sizes_patch.tar.gz
Description: This is a patch that introduces 2 IOCTLs for working with R