| Function report | 
| Source Code: security\keys\keyctl.c | Create Date:2022-07-28 18:19:52 | 
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Move a link to a key from one keyring to another, displacing any matching* key from the destination keyring.* The key must grant the caller Link permission and both keyrings must grant* the caller Write permission
Proto:long keyctl_keyring_move(key_serial_t id, key_serial_t from_ringid, key_serial_t to_ringid, unsigned int flags)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| key_serial_t | id | |
| key_serial_t | from_ringid | |
| key_serial_t | to_ringid | |
| unsigned int | flags | 
| 601 | If flags & ~Do not displace from the to-keyring Then Return -EINVAL | 
| 620 | ret = key_move - Move a key from one keyring to another*@key: The key to move*@from_keyring: The keyring to remove the link from | 
| 623 | key_ref_put(to_ref) | 
| 624 | error3 : | 
| 625 | key_ref_put(from_ref) | 
| 626 | error2 : | 
| 627 | key_ref_put(key_ref) | 
| 628 | 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 |