Function report |
Source Code:fs\mbcache.c |
Create Date:2022-07-28 20:29:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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?
Proto:int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, unsigned int key, u64 value, bool reusable)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mb_cache * | cache | |
gfp_t | mask | |
unsigned int | key | |
u64 | value | |
bool | reusable |
88 | entry = kmem_cache_alloc(mb_entry_cache, mask) |
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 | spin_lock( & Protects c_list, c_entry_count ) |
114 | atomic_inc( & e_refcnt) |
115 | Number of entries in cache ++ |
118 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |