Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:17:26 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:shrink_slab - shrink slab caches*@gfp_mask: allocation context*@nid: node whose slab caches to target*@memcg: memory cgroup whose slab caches to target*@priority: the reclaim priority* Call the shrink functions to age shrinkable caches
Proto:static unsigned long shrink_slab(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
gfp_t | gfp_mask | |
int | nid | |
struct mem_cgroup * | memcg | |
int | priority |
664 | freed = 0 |
674 | If Not mem_cgroup_disabled() && Not mem_cgroup_is_root(memcg) Then Return shrink_slab_memcg(gfp_mask, nid, memcg, priority) |
677 | If Not rylock for reading -- returns 1 if successful, 0 if contention Then Go to out |
681 | struct shrink_control sc = {gfp_mask = gfp_mask, current node being shrunk (for NUMA aware shrinkers) = nid, current memcg being shrunk (for memcg aware shrinkers) = memcg, } |
687 | ret = do_shrink_slab( & sc, shrinker, priority) |
688 | If ret == SHRINK_EMPTY Then ret = 0 |
703 | out : |
704 | cond_resched() |
705 | Return freed |
Name | Describe |
---|---|
drop_slab_node | |
shrink_node_memcgs |
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 |