| Function report | 
| Source Code: security\keys\keyctl.c | Create Date:2022-07-28 18:19:49 | 
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Unlink a key from a keyring.* The keyring must grant the caller Write permission for this to work; the key* itself need not grant the caller anything. If the last link to a key is* removed then that key will be scheduled for destruction.
Proto:long keyctl_keyring_unlink(key_serial_t id, key_serial_t ringid)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| key_serial_t | id | |
| key_serial_t | ringid | 
| 559 | If IS_ERR(keyring_ref) Then | 
| 560 | ret = PTR_ERR(keyring_ref) | 
| 561 | Go to error | 
| 570 | keyring = key_ref_to_ptr(keyring_ref) | 
| 571 | key = key_ref_to_ptr(key_ref) | 
| 578 | key_ref_put(key_ref) | 
| 579 | error2 : | 
| 580 | key_ref_put(keyring_ref) | 
| 581 | error : | 
| 582 | Return ret | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE5 | The key control system call | 
| COMPAT_SYSCALL_DEFINE5 | The key control system call, 32-bit compatibility version for 64-bit archs | 
| 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 |