Function report | 
Source Code:security\keys\keyring.c | 
Create Date:2022-07-28 18:18:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:keyring_clear - Clear a keyring*@keyring: The keyring to clear.* Clear the contents of the specified keyring.* Returns 0 if successful or -ENOTDIR if the keyring isn't a keyring.
Proto:int keyring_clear(struct key *keyring)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct key * | keyring | 
| 1651 | If type of key != key_type_keyring Then Return -ENOTDIR | 
| 1654 | lock for writing | 
| 1659 | Else | 
| 1663 | ret = 0 | 
| 1666 | lease a write lock | 
| 1667 | Return ret | 
| Name | Describe | 
|---|---|
| keyctl_keyring_clear | Clear the specified keyring, creating an empty process keyring if one of the* special keyring IDs is used.* The keyring must grant the caller Write permission and not have* KEY_FLAG_KEEP set for this to work. If successful, 0 will be returned. | 
| 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  |