函数逻辑报告

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

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

函数原型:bool sysfs_streq(const char *s1, const char *s2)

返回类型:bool

参数:

类型参数名称
const char *s1
const char *s2
664 s1s1恒等于s2循环
665  s1自加
666  s2自加
669  如果s1恒等于s2则返回:true
671  如果非s1s2恒等于'\n'且非s2[1]则返回:true
673  如果s1恒等于'\n'且非s1[1]且非s2则返回:true
675  返回:false
调用者
名称描述
__sysfs_match_string__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().