函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:22:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Slow path. The lockless freelist is empty or we need to perform* debugging duties.* Processing is still very fast if new objects have been freed to the* regular freelist. In that case we simply take over the regular freelist
函数原型:static void *___slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, unsigned long addr, struct kmem_cache_cpu *c)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s | |
gfp_t | gfpflags | |
int | node | |
unsigned long | addr | |
struct kmem_cache_cpu * | c |
2549 | redo : |
2552 | searchnode等于node |
2554 | 如果node不等于NUMA_NO_NODE且非node_present_pages(node)则searchnode等于node_to_mem_node(node) |
2569 | 如果此条件成立可能性小(为编译器优化)(!pfmemalloc_match(page, gfpflags))则 |
2570 | Remove the cpu slab |
2571 | 转到:new_slab |
2576 | 如果freelist则转到:load_freelist |
2581 | 如果非freelist则 |
2582 | The slab from which we are allocating = NULL |
2583 | stat(s, Implicit deactivation ) |
2584 | 转到:new_slab |
2587 | stat(s, Refill cpu slab from slab freelist ) |
2589 | load_freelist : |
2598 | 返回:freelist |
2600 | new_slab : |
2602 | 如果slub_percpu_partial(c)则 |
2605 | stat(s, Used cpu partial on alloc ) |
2606 | 转到:redo |
2611 | 如果此条件成立可能性小(为编译器优化)(!freelist)则 |
2612 | slab_out_of_memory(s, gfpflags, node) |
2613 | 返回:NULL |
2625 | Remove the cpu slab |
2626 | 返回:freelist |
名称 | 描述 |
---|---|
__slab_alloc | Another one that disabled interrupt and compensates for possible* cpu changes by refetching the per cpu area pointer. |
kmem_cache_alloc_bulk | Note that interrupts must be enabled when calling this function. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |