Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kstrtou16_from_user

Proto:int kstrtou16_from_user(const char *s, size_t count, unsigned int base, u16 *res)

Type:int

Parameter:

TypeParameterName
const char *s
size_tcount
unsigned intbase
u16 *res
407  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));}))
407  If copy_from_user(buf, s, count) Then Return -EFAULT
407  buf[count] = '\0'
407  Return kstrtou16(buf, base, res)