Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\util.c Create Date:2022-07-28 19:47:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_make_byte - Make byte value from three octal characters.*@c1: The first character.*@c2: The second character.*@c3: The third character.* Returns byte value.

Proto:static inline u8 tomoyo_make_byte(const u8 c1, const u8 c2, const u8 c3)

Type:u8

Parameter:

TypeParameterName
const u8c1
const u8c2
const u8c3
344  Return ( c1 - '0' << 6) + ( c2 - '0' << 3) + c3 - '0'
Caller
NameDescribe
tomoyo_correct_word2moyo_correct_word2 - Validate a string.*@string: The string to check. Maybe non-'\0'-terminated.*@len: Length of @string.* Check whether the given string follows the naming rules.* Returns true if @string follows the naming rules, false otherwise.