login
Header Space

 
 

__kfifo_put(9)

July 19, 2007 - 1:23am
Submitted by Jeremy on July 19, 2007 - 1:23am.

INDEX

    NAME, SYNOPSIS, ARGUMENTS, DESCRIPTION, COPYRIGHT

    "__KFIFO_PUT" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "FIFO Buffer"

    NAME

    __kfifo_put - puts some data into the FIFO, no locking version

    SYNOPSIS

    "unsigned int __kfifo_put(struct kfifo * " "fifo" ", unsigned char * " "buffer" ", unsigned int " "len" ");"

    ARGUMENTS

    fifo

    the fifo to be used.
    buffer
    the data to be added. len the length of the data to be added.

    DESCRIPTION

    This function copies at most len bytes from the buffer into the FIFO depending on the free space, and returns the number of bytes copied.

    Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these functions.

    COPYRIGHT

speck-geostationary