Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__kfifo_from_user

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

Type:int

Parameter:

TypeParameterName
struct __kfifo *fifo
const void __user *from
unsigned longlen
unsigned int *copied
215  esize = esize
218  If esize != 1 Then len /= esize
221  l = rnal helper to calculate the unused elements in a fifo
222  If len > l Then len = l
225  ret = kfifo_copy_from_user(fifo, from, len, in, copied)
226  If Value for the false possibility is greater at compile time(ret) Then
227  len -= ret
228  err = -EFAULT
229  Else err = 0
231  in += len
232  Return err