Rechercher une page de manuel
kfifo_from_user
Langue: en
Version: October 2010 (fedora - 01/12/10)
Section: 9 (Appels noyau Linux)
NAME
kfifo_from_user - puts some data from user space into the FIFOSYNOPSIS
- int kfifo_from_user(struct kfifo * fifo, const void __user * from, unsigned int len, unsigned * total);
ARGUMENTS
fifo
- the fifo to be used.
from
- pointer to the data to be added.
len
- the length of the data to be added.
total
- the actual returned data length.
DESCRIPTION
This function copies at most len bytes from the from into the FIFO depending and returns -EFAULT/0.
Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these functions.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre