函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:int match_string(const char *const *array, size_t n, const char *string)

返回类型:int

参数:

类型参数名称
const char *const *array
size_tn
const char *string
693 index小于n循环
694  item等于array[index]
695  如果非item退出
697  如果非strcmp(item, string)则返回:index
701  返回:负EINVAL
调用者
名称描述
parse_resource
trace_set_options
vmpressure_register_eventvmpressure_register_event() - Bind vmpressure notifications to an eventfd*@memcg: memcg that is interested in vmpressure notifications*@eventfd: eventfd context to link notifications with*@args: event arguments (pressure level threshold, optional mode)*
param_set_mode
hash_setup
mtrr_writeseq_file can seek but we ignore it.* Format of control line:* "base=%Lx size=%Lx type=%s" or "disable=%d"
sched_feat_set
param_set_audit