Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Work around broken programs that cannot handle "Linux 3.0".* Instead we map 3.x to 2.6.40+x, so e.g. 3.0 would be 2.6.40* And we map 4.x and later versions to 2.6.60+x, so 4.0/5.0/6.0/... would be* 2.6.60.

Proto:static int override_release(char __user *release, size_t len)

Type:int

Parameter:

TypeParameterName
char __user *release
size_tlen
1215  ret = 0
1217  If personality & UNAME26 Then
1218  rest = UTS_RELEASE
1219  char buf[65] = {0}
1220  ndots = 0
1224  When rest cycle
1225  If rest == '.' && ++ndots >= 3 Then Break
1227  If Not isdigit( * rest) && rest != '.' Then Break
1229  rest++
1231  v = ( LINUX_VERSION_CODE >> 8 & 0xff) + 60
1232  copy = clamp_t - return a value clamped to a given range using a given type*@type: the type of variable to use*@val: current value*@lo: minimum allowable value*@hi: maximum allowable value* This macro does no typechecking and uses temporary variables of type(size_t, len, 1, size of buf )
1233  copy = scnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
1234  ret = copy_to_user(release, buf, copy + 1)
1236  Return ret
Caller
NameDescribe
SYSCALL_DEFINE1
SYSCALL_DEFINE1Old cruft
SYSCALL_DEFINE1