函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_parse_ulong - Parse an "unsigned long" value.*@result: Pointer to "unsigned long".*@str: Pointer to string to parse.* Returns one of values in "enum tomoyo_value_type".* The @src is updated to point the first character after the value* on success.

函数原型:u8 tomoyo_parse_ulong(unsigned long *result, char **str)

返回类型:u8

参数:

类型参数名称
unsigned long *result
char **str
185  cp等于str
187  base等于10
189  如果cp恒等于'0'则
190  c等于*cp加1的和
192  如果c恒等于'x'或c恒等于'X'则
193  base等于16
194  cp加等于2
195  否则如果c大于等于'0'且c小于等于'7'则
196  base等于8
197  cp自加
200  result等于转换字符串为无符号整形
201  如果cp恒等于ep则返回:TOMOYO_VALUE_TYPE_INVALID
203  str等于ep
205  :base恒等于16
206  返回:TOMOYO_VALUE_TYPE_HEXADECIMAL
207  :base恒等于8
208  返回:TOMOYO_VALUE_TYPE_OCTAL
209  默认
210  返回:TOMOYO_VALUE_TYPE_DECIMAL
调用者
名称描述
tomoyo_parse_number_unionmoyo_parse_number_union - Parse a tomoyo_number_union.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_number_union".* Returns true on success, false otherwise.