函数逻辑报告 |
Source Code:fs\mbcache.c |
Create Date:2022-07-29 11:04:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:mb_cache_entry_create - create entry in cache*@cache - cache where the entry should be created*@mask - gfp mask with which the entry should be allocated*@key - key of the entry*@value - value of the entry*@reusable - is the entry reusable by others?
函数原型:int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, unsigned int key, u64 value, bool reusable)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mb_cache * | cache | |
| gfp_t | mask | |
| unsigned int | key | |
| u64 | value | |
| bool | reusable |
| 92 | 初始化链表头 |
| 94 | atomic_set( & e_refcnt, 1) |
| 97 | e_reusable等于reusable |
| 98 | e_referenced等于0 |
| 99 | head等于mb_cache_entry_head(cache, key) |
| 100 | hlist_bl_lock(head) |
| 109 | hlist_bl_unlock(head) |
| 111 | 加自旋锁 |
| 112 | 添加链表项 |
| 114 | atomic_inc( & e_refcnt) |
| 115 | Number of entries in cache 自加 |
| 116 | 自旋锁解锁 |
| 118 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |