Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs_parser.c Create Date:2022-07-28 20:13:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lookup_constant - Look up a constant by name in an ordered table*@tbl: The table of constants to search.*@tbl_size: The size of the table.*@name: The name to look up.*@not_found: The value to return if the name is not found.

Proto:int __lookup_constant(const struct constant_table *tbl, size_t tbl_size, const char *name, int not_found)

Type:int

Parameter:

TypeParameterName
const struct constant_table *tbl
size_ttbl_size
const char *name
intnot_found
37  When i < tbl_size cycle If strcmp(name, name) == 0 Then
39  Return value
41  Return not_found