函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kfifo_from_user_r

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

返回类型:int

参数:

类型参数名称
struct __kfifo *fifo
const void __user *from
unsigned longlen
unsigned int *copied
size_trecsize
504  len等于__kfifo_max_r(len, recsize)
506  如果lenrecsize大于rnal helper to calculate the unused elements in a fifo
507  copied等于0
508  返回: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  如果此条件成立可能性小(为编译器优化)(ret)则
515  copied等于0
516  返回:负EFAULT
518  in加等于lenrecsize
519  返回:0