Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__sysfs_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*@str: string to match with* Returns index of @str in the @array or -EINVAL, just like match_string().

Proto:int __sysfs_match_string(const char *const *array, size_t n, const char *str)

Type:int

Parameter:

TypeParameterName
const char *const *array
size_tn
const char *str
719  When index < n cycle
720  item = array[index]
721  If Not item Then Break
723  If sysfs_streq - return true if strings are equal, modulo trailing newline*@s1: one string*@s2: another string* This routine returns true iff two strings are equal, treating both* NUL and newline-then-NUL as equivalent string terminations Then Return index
727  Return -EINVAL