函数逻辑报告 |
Source Code:lib\lru_cache.c |
Create Date:2022-07-27 08:15:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__lc_get
函数原型:static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags)
返回类型:struct lc_element
参数:
类型 | 参数 | 名称 |
---|---|---|
struct lru_cache * | lc | |
unsigned int | enr | |
unsigned int | flags |
365 | his is developers aid only.* it catches concurrent access (lack of locking on the users part) () |
366 | 如果 see below: flag-bits for lru_cache 按位与LC_STARVING则 |
376 | 如果e则 |
399 | misses先自加 |
400 | 如果非flags按位与LC_GET_MAY_CHANGE的值则RETURN(NULL) |
418 | 如果非lc_unused_element_available(lc)则 |
420 | RETURN(NULL) |
426 | 如果 number of elements currently on to_be_changed list 大于等于 allow to accumulate a few (index:label) changes, * but no more than max_pending_changes 则RETURN(NULL) |
429 | e等于lc_prepare_for_change(lc, enr) |
名称 | 描述 |
---|---|
lc_get | lc_get - get element by label, maybe change the active set*@lc: the lru cache to operate on*@enr: the label to look up* Finds an element in the cache, increases its usage count,* "touches" and returns it |
lc_get_cumulative | lc_get_cumulative - like lc_get; also finds to-be-changed elements*@lc: the lru cache to operate on*@enr: the label to look up* Unlike lc_get this also returns the element for @enr, if it is belonging to* a pending transaction, so the return values are |
lc_try_get | lc_try_get - get element by label, if present; do not change the active set*@lc: the lru cache to operate on*@enr: the label to look up* Finds an element in the cache, increases its usage count,* "touches" and returns it |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |