---
name: "kfifo_from_user"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/kfifo_from_user"
---

# kfifo\_from\_user(9)

puts some data from user space into the fifo

## NAME

kfifo\_from\_user - puts some data from user space into the fifo

## SYNOPSIS

**kfifo\_from\_user(***fifo***,** *from***,** *len***,** *copied***);**

## ARGUMENTS

*fifo*

address of the fifo to be used

*from*

pointer to the data to be added

*len*

the length of the data to be added

*copied*

pointer to output variable to store the number of copied bytes

## DESCRIPTION

This macro copies at most *len* bytes from the *from* into the fifo, depending of the available space and returns -EFAULT/0.

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

## COPYRIGHT
