Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-28 19:34:18
Last Modify:2020-03-18 09:15:18 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static s8 tomoyo_find_yesno(const char *string, const char *find)

Type:s8

Parameter:

TypeParameterName
const char *string
const char *find
555  cp = strstr(string, find)
557  If cp Then
558  cp += strlen - Find the length of a string*@s: The string to be sized
559  If Not strncmp(cp, "=yes", 4) Then Return 1
561  Else if Not strncmp(cp, "=no", 3) Then Return 0
564  Return -1
Caller
NameDescribe
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.