函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gup_benchmark_ioctl

函数原型:static long gup_benchmark_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)

返回类型:long

参数:

类型参数名称
struct file *filep
unsigned intcmd
unsigned longarg
102  :cmd恒等于GUP_FAST_BENCHMARK
103  :cmd恒等于GUP_LONGTERM_BENCHMARK
104  :cmd恒等于GUP_BENCHMARK
105  退出
106  默认
107  返回:负EINVAL
110  如果copy_from_user( & gup, (void__user * )arg, gup的长度)则返回:负EFAULT
113  ret等于__gup_benchmark_ioctl(cmd, & gup)
114  如果ret则返回:ret
117  如果copy_to_user((void__user * )arg, & gup, gup的长度)则返回:负EFAULT
120  返回:0