函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kfifo.c Create Date:2022-07-27 07:21:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__kfifo_from_user

函数原型:int __kfifo_from_user(struct __kfifo *fifo, const void __user *from, unsigned long len, unsigned int *copied)

返回类型:int

参数:

类型参数名称
struct __kfifo *fifo
const void __user *from
unsigned longlen
unsigned int *copied
215  esize等于esize
218  如果esize不等于1则len除等于esize
221  l等于rnal helper to calculate the unused elements in a fifo
222  如果len大于llen等于l
225  ret等于kfifo_copy_from_user(fifo, from, len, in, copied)
226  如果此条件成立可能性小(为编译器优化)(ret)则
227  len减等于ret
228  err等于负EFAULT
229  否则err等于0
231  in加等于len
232  返回:err