函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kstrtoull_from_user

函数原型:int kstrtoull_from_user(const char *s, size_t count, unsigned int base, unsigned long long *res)

返回类型:int

参数:

类型参数名称
const char *s
size_tcount
unsigned intbase
unsigned long long *res
401  count等于__builtin_choose_expr(((!!(1恒等于1的长度)) && ((sizeof(int) == *如果8则count乘0l否则8的长度) && (sizeof(int) == *如果8则buf的长度减1的差乘0l否则8的长度))), ((count) < (buf的长度 - 1) ? (count) : (buf的长度 - 1)), ({typeof(count)__UNIQUE_ID___x = (count);typeof(buf的长度 - 1)__UNIQUE_ID___y = (buf的长度 - 1);((__UNIQUE_ID___x) < (__UNIQUE_ID___y) ? (__UNIQUE_ID___x) : (__UNIQUE_ID___y));}))
401  如果copy_from_user(buf, s, count)则返回:负EFAULT
401  buf[count]等于'\0'
401  返回: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.
调用者
名称描述
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
hwlat_width_writehwlat_width_write - Write function for "width" 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