函数逻辑报告 |
Source Code:security\keys\key.c |
Create Date:2022-07-27 19:51:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int key_update(key_ref_t key_ref, const void *payload, size_t plen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
key_ref_t | key_ref | |
const void * | payload | |
size_t | plen |
988 | key等于key_ref_to_ptr(key_ref) |
999 | 如果非update则返回:负EOPNOTSUPP |
1004 | Raw datalen 等于plen |
1007 | 如果preparse则 |
1013 | lock for writing |
1016 | 如果ret恒等于0则Change the key state to being instantiated. |
1020 | lease a write lock |
1022 | error : |
1023 | 如果preparse则free_preparse( & prep) |
1025 | 返回:ret |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |