函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl_pkey.c Create Date:2022-07-27 20:01:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Parse the information string which consists of key=val pairs.

函数原型:static int keyctl_pkey_params_parse(struct kernel_pkey_params *params)

返回类型:int

参数:

类型参数名称
struct kernel_pkey_params *params
40  token_mask等于0
42  c等于 Modified info string to be released later
45 p等于分割字符串循环
46  如果p恒等于'\0'或p恒等于' '或p恒等于'\t'则继续下一循环
48  token等于match_token: - Find a token (and optional args) in a string*@s: the string to examine for token/argument pairs*@table: match_table_t describing the set of allowed option tokens and the* arguments that may be associated with them. Must be terminated with a
49  如果token恒等于Opt_err则返回:负EINVAL
51  如果__test_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This operation is non-atomic. If two instances of this operation race, one* can appear to succeed but actually fail.则返回:负EINVAL
53  q等于from
54  如果非q[0]则返回:负EINVAL
58  :token恒等于Opt_enc
60  退出
62  :token恒等于Opt_hash
64  退出
66  默认
67  返回:负EINVAL
71  返回:0
调用者
名称描述
keyctl_pkey_params_getInterpret parameters. Callers must always call the free function* on params, even if an error is returned.