Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__kfifo_to_user

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

Type:int

Parameter:

TypeParameterName
struct __kfifo *fifo
void __user *to
unsigned longlen
unsigned int *copied
275  esize = esize
278  If esize != 1 Then len /= esize
281  l = in - out
282  If len > l Then len = l
284  ret = kfifo_copy_to_user(fifo, to, len, out, copied)
285  If Value for the false possibility is greater at compile time(ret) Then
286  len -= ret
287  err = -EFAULT
288  Else err = 0
290  out += len
291  Return err