函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:21:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Remove slab from the partial list, freeze it and* return the pointer to the freelist.* Returns a list of objects or NULL if it fails.
函数原型:static inline void *acquire_slab(struct kmem_cache *s, struct kmem_cache_node *n, struct page *page, int mode, int *objects)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s | |
struct kmem_cache_node * | n | |
struct page * | page | |
int | mode | |
int * | objects |
1798 | lockdep_assert_held( & list_lock) |
1805 | freelist等于 first free object |
1809 | 如果mode则 |
1811 | first free object = NULL |
1812 | 否则 |
1813 | first free object 等于freelist |
1817 | frozen等于1 |
1819 | 如果非Interrupts must be disabled (for the fallback code to work right) 则返回:NULL |
1825 | remove_partial(n, page) |
1827 | 返回:freelist |
名称 | 描述 |
---|---|
get_partial_node | Try to allocate a partial slab from a specific node. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |