Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kfifo_out(9) [centos man page]

KFIFO_OUT(9)							    FIFO Buffer 						      KFIFO_OUT(9)

kfifo_out - get data from the fifo SYNOPSIS
kfifo_out(fifo, buf, n); ARGUMENTS
fifo address of the fifo to be used buf pointer to the storage buffer n max. number of elements to get DESCRIPTION
This macro get some data from the fifo and return the numbers of elements copied. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 KFIFO_OUT(9)

Check Out this Related Man Page

fifo(3tcl)																fifo(3tcl)

fifo - Create and manipulate u-turn fifo channels SYNOPSIS
package require Tcl package require memchan fifo DESCRIPTION
fifo creates a stream-oriented in-memory channel and returns its handle. There is no restriction on the ultimate size of the channel, it will always grow as much as is necessary to accommodate the data written into it. In contrast to the channels generated by memchan a channel created here effectively represents an U-turn. All data written into it can be read out, but only in the same order. This also means that a fifo channel is not seekable. The channels created here can be transferred between interpreters in the same thread and between threads, but only as a whole. It is not possible to use them to create a bi- or unidirectional connection between two interpreters. Memory channels created by fifo provide two read-only options which can be queried via the standard fconfigure command. These are -length The value of this option is the number of bytes currently stored in the queried memory channel. -allocated The value of this option is the number of bytes currently allocated by the queried memory channel. This number is at least as big as the value of -length. As the channels generated by fifo grow as necessary they are always writable. This means that a writable fileevent-handler will fire con- tinuously. The channels are also readable if they contain more than zero bytes. Under this conditions a readable fileevent-handler will fire continu- ously. NOTES
One possible application of memory channels created by memchan or fifo is as temporary storage device to collect data coming in over a pipe or a socket. If part of the processing of the incoming data is to read and process header bytes or similar fifo are easier to use as they do not require seeking back and forth to switch between the assimilation of headers at the beginning and writing new data at the end. SEE ALSO
fifo2, memchan, null KEYWORDS
channel, fifo, i/o, in-memory channel, memchan, stream COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <> Memory channels 2.1 fifo(3tcl)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Interactive shell through a pipe

I'm new to working with pipes, so I don't know whether the following is expected behaviour or a bug on the part of an application. Since Version 0.47, Inkscape provides a non-GUI interactive shell mode of operation. I am trying to time the program's performance in converting SVG files to PNG... (1 Reply)
Discussion started by: ccprog
1 Replies

2. Shell Programming and Scripting

awk reading from named pipe (fifo)

I'm trying to read a fifo using awk and comming across some problems. I'm writing to the fifo from multiple processes invoked by GNU Parallel: mkfifo my_fifo awk '{ a = a + $2 } END { for (i in a) print i, a }' my_fifo | sort -nk1 > sorted_output grep -v '^@' massive_file | parallel... (3 Replies)
Discussion started by: nathanhaigh
3 Replies

3. Shell Programming and Scripting

Output to console and to log

I have a menu based script where user will select different action via displayed menu. I want to log all the action or say whatever displayed on screen to a log file and want to achieve with in the same script. i tried named pipe as below.. logfile=mylogfile mkfifo ${logfile}.pipe... (3 Replies)
Discussion started by: vidyadhar85
3 Replies

4. Shell Programming and Scripting

Redirecting/Capturing inputs supplied in interactive script

Hello Is it possible to redirect standard input into a file in an interactive script like we do for standard out and input using &2 and &1. Enter source : hi Enter destination : bye In the log i can see like this when I am using 2>&1 | tee file Enter source : Enter... (3 Replies)
Discussion started by: ningy
3 Replies