Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kfifo.c Create Date:2022-07-28 06:24:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__kfifo_from_user_r

Proto:int __kfifo_from_user_r(struct __kfifo *fifo, const void __user *from, unsigned long len, unsigned int *copied, size_t recsize)

Type:int

Parameter:

TypeParameterName
struct __kfifo *fifo
const void __user *from
unsigned longlen
unsigned int *copied
size_trecsize
504  len = __kfifo_max_r(len, recsize)
506  If len + recsize > rnal helper to calculate the unused elements in a fifo Then
507  copied = 0
508  Return 0
511  __kfifo_poke_n internal helper function for storeing the length of* the record into the fifo
513  ret = kfifo_copy_from_user(fifo, from, len, in + recsize, copied)
514  If Value for the false possibility is greater at compile time(ret) Then
515  copied = 0
516  Return -EFAULT
518  in += len + recsize
519  Return 0