Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Since "base" would be a nonsense argument, this open-codes the* _from_user helper instead of using the helper macro below.

Proto:int kstrtobool_from_user(const char __user *s, size_t count, bool *res)

Type:int

Parameter:

TypeParameterName
const char __user *s
size_tcount
bool *res
379  count = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(count, size of buf - 1)
380  If copy_from_user(buf, s, count) Then Return -EFAULT
382  buf[count] = '\0'
383  Return kstrtobool - convert common user inputs into boolean values*@s: input string*@res: result* This routine returns 0 iff the first character is one of 'Yy1Nn0', or* [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value