Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:int match_string(const char *const *array, size_t n, const char *string)

Type:int

Parameter:

TypeParameterName
const char *const *array
size_tn
const char *string
693  When index < n cycle
694  item = array[index]
695  If Not item Then Break
697  If Not strcmp(item, string) Then Return index
701  Return -EINVAL
Caller
NameDescribe
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