Function report |
Source Code:mm\slub.c |
Create Date:2022-07-28 15:47:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Get a page from somewhere. Search in increasing NUMA distances.
Proto:static void *get_any_partial(struct kmem_cache *s, gfp_t flags, struct kmem_cache_cpu *c)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | s | |
| gfp_t | flags | |
| struct kmem_cache_cpu * | c |
| 1892 | high_zoneidx = gfp_zone(flags) |
| 1914 | If Not Defragmentation by allocating from a remote node. || get_cycles() % 1024 > Defragmentation by allocating from a remote node. Then Return NULL |
| 1918 | Do |
| 1924 | n = get_node(s, zone_to_nid(zone)) |
| 1926 | If n && cpuset_zone_allowed(zone, flags) && nr_partial > min_partial Then |
| 1941 | When read_mems_allowed_retry(cpuset_mems_cookie) cycle |
| 1943 | Return NULL |
| Name | Describe |
|---|---|
| get_partial | Get a partial page, lock it and return it. |
| 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 |