Function report |
Source Code:security\keys\key.c |
Create Date:2022-07-28 18:16:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:key_update - Update a key's contents.*@key_ref: The pointer (plus possession flag) to the key.*@payload: The data to be used to update the key.*@plen: The length of @payload.* Attempt to update the contents of a key with the given payload data. The
Proto:int key_update(key_ref_t key_ref, const void *payload, size_t plen)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
key_ref_t | key_ref | |
const void * | payload | |
size_t | plen |
988 | key = key_ref_to_ptr(key_ref) |
999 | If Not update Then Return -EOPNOTSUPP |
1004 | Raw datalen = plen |
1007 | If preparse Then |
1013 | lock for writing |
1016 | If ret == 0 Then Change the key state to being instantiated. |
1020 | lease a write lock |
1022 | error : |
1023 | If preparse Then free_preparse( & prep) |
1025 | Return ret |
Name | Describe |
---|---|
keyctl_update_key | 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 |
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 |