Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_const_part_length - Evaluate the initial length without a pattern in a token.*@filename: The string to evaluate.* Returns the initial length without a pattern in @filename.

Proto:static int tomoyo_const_part_length(const char *filename)

Type:int

Parameter:

TypeParameterName
const char *filename
616  len = 0
618  If Not filename Then Return 0
620  When (c = filename++) != '\0' cycle
621  If c != '\\' Then
622  len++
623  Continue
625  c = filename++
627  Case c == '\\'
628  len += 2
629  Continue
630  Case c == '0'
631  Case c == '1'
632  Case c == '2'
633  Case c == '3'
634  c = filename++
635  If c < '0' || c > '7' Then Break
637  c = filename++
638  If c < '0' || c > '7' Then Break
640  len += 4
641  Continue
643  Break
645  Return len
Caller
NameDescribe
tomoyo_fill_path_infomoyo_fill_path_info - Fill in "struct tomoyo_path_info" members.*@ptr: Pointer to "struct tomoyo_path_info" to fill in.* The caller sets "struct tomoyo_path_info"->name.