Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kstrtoull_from_user

Proto:int kstrtoull_from_user(const char *s, size_t count, unsigned int base, unsigned long long *res)

Type:int

Parameter:

TypeParameterName
const char *s
size_tcount
unsigned intbase
unsigned long long *res
401  count = __builtin_choose_expr(((!!( size of 1 == 1 )) && ((sizeof(int) == size of *If 8 Then count * 0l Else 8 ) && (sizeof(int) == size of *If 8 Then ( size of buf - 1) * 0l Else 8 ))), ((count) < ( size of buf - 1) ? (count) : ( size of buf - 1)), ({typeof(count)__UNIQUE_ID___x = (count);typeof( size of buf - 1)__UNIQUE_ID___y = ( size of buf - 1);((__UNIQUE_ID___x) < (__UNIQUE_ID___y) ? (__UNIQUE_ID___x) : (__UNIQUE_ID___y));}))
401  If copy_from_user(buf, s, count) Then Return -EFAULT
401  buf[count] = '\0'
401  Return kstrtoull - convert a string to an unsigned long long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
Caller
NameDescribe
hwlat_window_writehwlat_window_write - Write function for "window" entry*@filp: The active open file structure*@ubuf: The user buffer that contains the value to write*@cnt: The maximum number of bytes to write to "file"*@ppos: The current position in @file* This function