1__SYSFS_MATCH_STRING(9)    Basic C Library Functions   __SYSFS_MATCH_STRING(9)
2
3
4

NAME

6       __sysfs_match_string - matches given string in an array
7

SYNOPSIS

9       int __sysfs_match_string(const char *const * array, size_t n,
10                                const char * str);
11

ARGUMENTS

13       array
14           array of strings
15
16       n
17           number of strings in the array or -1 for NULL terminated arrays
18
19       str
20           string to match with
21

DESCRIPTION

23       Returns index of str in the array or -EINVAL, just like match_string.
24       Uses sysfs_streq instead of strcmp for matching.
25
27Kernel Hackers Manual 3.10         June 2019           __SYSFS_MATCH_STRING(9)
Impressum