函数逻辑报告 |
Source Code:security\keys\key.c |
Create Date:2022-07-27 19:50:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Find a key by its serial number.
函数原型:struct key *key_lookup(key_serial_t id)
返回类型:struct key
参数:
类型 | 参数 | 名称 |
---|---|---|
key_serial_t | id |
660 | 加自旋锁 |
665 | key等于rb_entry(n, structkey, serial_node) |
667 | 如果id小于 key serial number 则n等于rb_left |
669 | 否则如果id大于 key serial number 则n等于rb_right |
671 | 否则转到:found |
675 | not_found : |
677 | 转到:error |
679 | found : |
686 | error : |
687 | 自旋锁解锁 |
688 | 返回:key |
名称 | 描述 |
---|---|
lookup_user_key | Look up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |