Function report |
Source Code:mm\slab.c |
Create Date:2022-07-28 15:43:05 |
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_node
Proto:static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node)
Type:struct kmem_cache_node
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kmem_cache * | s | |
| int | node |
| Name | Describe |
|---|---|
| cache_free_pfmemalloc | |
| __drain_alien_cache | |
| __cache_free_alien | |
| init_cache_node | |
| setup_kmem_cache_node | |
| drain_cache_node_node | Drains freelist for a node on each slab cache, used for memory hot-remove.* Returns -EBUSY if all objects cannot be drained so that the node is not* removed.* Must hold slab_mutex. |
| do_drain | |
| cache_grow_begin | Grow (by 1) the number of slabs within a cache. This is called by* kmem_cache_alloc() when there are no active objs left in a cache. |
| cache_grow_end | |
| cache_alloc_refill | |
| fallback_alloc | Fallback function if there was no memory available and no objects on a* certain node and fall back is permitted. First we scan all the* available node for available objects. If that fails then we* perform an allocation without specifying a node |
| ____cache_alloc_node | A interface to enable slab creation on nodeid |
| slab_alloc_node | |
| free_block | Caller needs to acquire correct kmem_cache_node's list_lock*@list: List of detached free slabs should be freed by caller |
| cache_flusharray | |
| setup_kmem_cache_nodes | This initializes kmem_cache_node or resizes various caches for all nodes. |
| __do_tune_cpucache | Always called with the slab_mutex held |
| cache_reap | ache_reap - Reclaim memory from caches |
| get_any_partial | Get a page from somewhere. Search in increasing NUMA distances. |
| get_partial | Get a partial page, lock it and return it. |
| deactivate_slab | Remove the cpu slab |
| __slab_free | Slow path handling. This may still be called frequently since objects* have a longer lifetime than the cpu slabs in most processing loads.* So we still attempt to reduce cache line usage. Just take the slab* lock and free the item |
| slab_mem_offline_callback |
| 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 |