Function report |
Source Code:security\keys\key.c |
Create Date:2022-07-28 18:15:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:key_reject_and_link - Negatively instantiate a key and link it into the keyring.*@key: The key to instantiate.*@timeout: The timeout on the negative key.*@error: The error to return when the key is hit.
Proto:int key_reject_and_link(struct key *key, unsigned timeout, unsigned error, struct key *keyring, struct key *authkey)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct key * | key | |
unsigned | timeout | |
unsigned | error | |
struct key * | keyring | |
struct key * | authkey |
575 | struct assoc_array_edit * edit = NULL |
576 | link_ret = 0 |
581 | awaken = 0 |
584 | If keyring Then |
588 | link_ret = __key_link_lock(keyring, & index_key) |
589 | If link_ret == 0 Then |
599 | If Key state (+) or rejection error (-) == KEY_IS_UNINSTANTIATED Then |
601 | atomic_inc( & nikeys) |
606 | If st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then awaken = 1 |
609 | ret = 0 |
612 | If keyring && link_ret == 0 Then __key_link(key, & edit) |
622 | If keyring && link_ret == 0 Then Finish linking a key into to a keyring.* Must be called with __key_link_begin() having being called. |
Name | Describe |
---|---|
keyctl_reject_key | Negatively instantiate the key with the given timeout (in seconds) and error* code and link the key into the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to |
key_negate_and_link |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |