函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int kstrtobool_from_user(const char __user *s, size_t count, bool *res)

返回类型:int

参数:

类型参数名称
const char __user *s
size_tcount
bool *res
379  count等于两数取小(count, buf的长度 - 1)
380  如果copy_from_user(buf, s, count)则返回:负EFAULT
382  buf[count]等于'\0'
383  返回: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