函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:22:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Fastpath with forced inlining to produce a kfree and kmem_cache_free that* can perform fastpath freeing without additional function calls.* The fastpath is only possible if we are freeing to the current cpu slab* of this processor
函数原型:static __always_inline void do_slab_free(struct kmem_cache *s, struct page *page, void *head, void *tail, int cnt, unsigned long addr)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kmem_cache * | s | |
| struct page * | page | |
| void * | head | |
| void * | tail | |
| int | cnt | |
| unsigned long | addr |
| 2964 | redo : |
| 2971 | 循环 |
| 2972 | tid等于Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.( Globally unique transaction id ) |
| 2973 | c等于raw_cpu_ptr(cpu_slab) |
| 2974 | 当IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PREEMPT)且此条件成立可能性小(为编译器优化)(tid != READ_ONCE( Globally unique transaction id ))循环 |
| 2980 | 如果此条件成立可能性大(为编译器优化)(page == The slab from which we are allocating )则 |
| 名称 | 描述 |
|---|---|
| slab_free |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |