Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl_pkey.c Create Date:2022-07-28 18:27:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Parse the information string which consists of key=val pairs.

Proto:static int keyctl_pkey_params_parse(struct kernel_pkey_params *params)

Type:int

Parameter:

TypeParameterName
struct kernel_pkey_params *params
40  token_mask = 0
42  c = Modified info string to be released later
45  When p = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function cycle
46  If p == '\0' || p == ' ' || p == '\t' Then Continue
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  If token == Opt_err Then Return -EINVAL
51  If __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. Then Return -EINVAL
53  q = from
54  If Not q[0] Then Return -EINVAL
58  Case token == Opt_enc
60  Break
62  Case token == Opt_hash
64  Break
66  Default
67  Return -EINVAL
71  Return 0
Caller
NameDescribe
keyctl_pkey_params_getInterpret parameters. Callers must always call the free function* on params, even if an error is returned.