Function report |
Source Code:mm\slab.c |
Create Date:2022-07-28 15:45:18 |
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Try allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.* If we are in_interrupt, then process context, including cpusets and* mempolicy, may not apply and should not be used for allocation policy.
Proto:static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | cachep | |
| gfp_t | flags |
| 3132 | If in_interrupt() || flags & __GFP_THISNODE Then Return NULL |
| 3135 | If cpuset_do_slab_mem_spread() && Used for retrieving partial slabs, etc. & Spread some memory over cpuset Then nid_alloc = cpuset_slab_spread_node() |
| 3137 | Else if mempolicy Then nid_alloc = Depending on the memory policy provide a node from which to allocate the* next slab entry. |
| 3139 | If nid_alloc != nid_here Then Return A interface to enable slab creation on nodeid |
| 3141 | Return NULL |
| Name | Describe |
|---|---|
| __do_cache_alloc |
| 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 |