函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parse_resource

函数原型:static int parse_resource(char *c, int *intval)

返回类型:int

参数:

类型参数名称
char *c
int *intval
359  value等于c
363  name等于分割字符串
364  如果非name或非value则返回:负EINVAL
367  i等于match_string - matches given string in an array*@array: array of strings*@n: number of strings in the array or -1 for NULL terminated arrays*@string: string to match with* Return:* index of a @string in the @array if matches, or %-EINVAL otherwise.
368  如果i小于0则返回:i
371  len等于strlen - Find the length of a string*@s: The string to be sized
373  from等于value
374  to等于valuelen
376  ret等于match_int: - scan a decimal representation of an integer from a substring_t*@s: substring_t to be scanned*@result: resulting integer on success* Description: Attempts to parse the &substring_t @s as a decimal integer. On
377  如果ret大于等于0则
378  如果intval小于0则返回:负EINVAL
380  返回:i
382  如果字符串指定长度比较恒等于0则
383  intval等于S32_MAX
384  返回:i
386  返回:负EINVAL
调用者
名称描述
rdmacg_parse_limits