| Function report | 
| Source Code: security\keys\keyctl.c | Create Date:2022-07-28 18:20:47 | 
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Set or clear the timeout on a key.* Either the key must grant the caller Setattr permission or else the caller* must hold an instantiation authorisation token for the key.* The timeout is either 0 to clear the timeout, or a number of seconds from
Proto:long keyctl_set_timeout(key_serial_t id, unsigned timeout)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| key_serial_t | id | |
| unsigned | timeout | 
| 1396 | instkey = Search the current process's keyrings for the authorisation key for* instantiation of a key. | 
| 1408 | Go to error | 
| 1411 | okay : | 
| 1412 | key = key_ref_to_ptr(key_ref) | 
| 1413 | ret = 0 | 
| 1414 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then ret = -EPERM | 
| 1416 | Else key_set_timeout(key, timeout) | 
| 1420 | error : | 
| 1421 | 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 |