函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:54:42 |
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Search the specified keyring and any keyrings it links to for a matching* key
函数原型:long keyctl_keyring_search(key_serial_t ringid, const char __user *_type, const char __user *_description, key_serial_t destringid)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| key_serial_t | ringid | |
| const char __user * | _type | |
| const char __user * | _description | |
| key_serial_t | destringid |
| 727 | ret等于key_get_type_from_user(type, _type, type的长度) |
| 732 | 如果是错误则 |
| 739 | 如果是错误则 |
| 745 | dest_ref = NULL |
| 746 | 如果destringid则 |
| 749 | 如果是错误则 |
| 756 | ktype等于Find and lock the specified key type against removal.* We return with the sem read-locked if successful. If the type wasn't* available -ENOKEY is returned instead. |
| 757 | 如果是错误则 |
| 763 | key_ref等于keyring_search - Search the supplied keyring tree for a matching key*@keyring: The root of the keyring tree to be searched |
| 764 | 如果是错误则 |
| 774 | 如果dest_ref则 |
| 784 | ret等于 key serial number |
| 786 | error6 : |
| 787 | key_ref_put(key_ref) |
| 788 | error5 : |
| 790 | error4 : |
| 791 | key_ref_put(dest_ref) |
| 792 | error3 : |
| 793 | key_ref_put(keyring_ref) |
| 794 | error2 : |
| 795 | 释放内存 |
| 796 | error : |
| 797 | 返回:ret |
| 名称 | 描述 |
|---|---|
| SYSCALL_DEFINE5 | The key control system call |
| COMPAT_SYSCALL_DEFINE5 | The key control system call, 32-bit compatibility version for 64-bit archs |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |