函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int __sysfs_match_string(const char *const *array, size_t n, const char *str)

返回类型:int

参数:

类型参数名称
const char *const *array
size_tn
const char *str
719 index小于n循环
720  item等于array[index]
721  如果非item退出
723  如果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则返回:index
727  返回:负EINVAL
调用者
名称描述
energy_perf_bias_store