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_to_user_r

Proto:int __kfifo_to_user_r(struct __kfifo *fifo, void __user *to, unsigned long len, unsigned int *copied, size_t recsize)

Type:int

Parameter:

TypeParameterName
struct __kfifo *fifo
void __user *to
unsigned longlen
unsigned int *copied
size_trecsize
529  If in == out Then
530  copied = 0
531  Return 0
534  n = __kfifo_peek_n internal helper function for determinate the length of* the next record in the fifo
535  If len > n Then len = n
538  ret = kfifo_copy_to_user(fifo, to, len, out + recsize, copied)
539  If Value for the false possibility is greater at compile time(ret) Then
540  copied = 0
541  Return -EFAULT
543  out += n + recsize
544  Return 0