Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\compat_ioctl.c Create Date:2022-07-28 20:26:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:compat_ioctl_check_table

Proto:static int compat_ioctl_check_table(unsigned int xcmd)

Type:int

Parameter:

TypeParameterName
unsigned intxcmd
120  max = ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(ioctl_pointer) - 1
122  BUILD_BUG_ON - break compile if a condition is true(max >= (1 << 16))
126  i = (xcmd >> 16) * max >> 16
129  When ioctl_pointer[i] < xcmd && i < max cycle
130  i++
133  When ioctl_pointer[i] > xcmd && i > 0 cycle
134  i--
136  Return ioctl_pointer[i] == xcmd
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE3