函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-27 21:03:36
Last Modify:2020-03-18 09:15:18 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_find_yesno - Find values for specified keyword.*@string: String to check.*@find: Name of keyword.* Returns 1 if "@find=yes" was found, 0 if "@find=no" was found, -1 otherwise.

函数原型:static s8 tomoyo_find_yesno(const char *string, const char *find)

返回类型:s8

参数:

类型参数名称
const char *string
const char *find
555  cp等于strstr(string, find)
557  如果cp
558  cp加等于strlen - Find the length of a string*@s: The string to be sized
559  如果非字符串指定长度比较则返回:1
561  否则如果非字符串指定长度比较则返回:0
564  返回:负1
调用者
名称描述
tomoyo_set_modemoyo_set_mode - Set mode for specified profile.*@name: Name of functionality.*@value: Mode for @name.*@profile: Pointer to "struct tomoyo_profile".* Returns 0 on success, negative value otherwise.