函数逻辑报告

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_to_user_r

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

返回类型:int

参数:

类型参数名称
struct __kfifo *fifo
void __user *to
unsigned longlen
unsigned int *copied
size_trecsize
529  如果in恒等于out
530  copied等于0
531  返回:0
534  n等于__kfifo_peek_n internal helper function for determinate the length of* the next record in the fifo
535  如果len大于nlen等于n
538  ret等于kfifo_copy_to_user(fifo, to, len, out + recsize, copied)
539  如果此条件成立可能性小(为编译器优化)(ret)则
540  copied等于0
541  返回:负EFAULT
543  out加等于nrecsize
544  返回:0