Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup_benchmark.c Create Date:2022-07-28 16:16:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gup_benchmark_ioctl

Proto:static long gup_benchmark_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)

Type:long

Parameter:

TypeParameterName
struct file *filep
unsigned intcmd
unsigned longarg
102  Case cmd == GUP_FAST_BENCHMARK
103  Case cmd == GUP_LONGTERM_BENCHMARK
104  Case cmd == GUP_BENCHMARK
105  Break
106  Default
107  Return -EINVAL
110  If copy_from_user( & gup, (void__user * )arg, size of gup ) Then Return -EFAULT
113  ret = __gup_benchmark_ioctl(cmd, & gup)
114  If ret Then Return ret
117  If copy_to_user((void__user * )arg, & gup, size of gup ) Then Return -EFAULT
120  Return 0