| Function report | 
| Source Code: security\keys\keyctl.c | Create Date:2022-07-28 18:19:35 | 
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Update a key's data payload from the given data.* The key must grant the caller Write permission and the key type must support* updating for this to work. A negative key can be positively instantiated* with this call.* If successful, 0 will be returned
Proto:long keyctl_update_key(key_serial_t id, const void __user *_payload, size_t plen)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| key_serial_t | id | |
| const void __user * | _payload | |
| size_t | plen | 
| 339 | payload = NULL | 
| 340 | If plen Then | 
| 342 | payload = Allocation memory | 
| 347 | If copy_from_user(payload, _payload, plen) != 0 Then Go to error2 | 
| 361 | key_ref_put(key_ref) | 
| 362 | error2 : | 
| 364 | error : | 
| 365 | 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 |