函数逻辑报告 |
Source Code:mm\z3fold.c |
Create Date:2022-07-27 18:05:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rns _locked_ z3fold page header or NULL
函数原型:static inline struct z3fold_header *__z3fold_alloc(struct z3fold_pool *pool, size_t size, bool can_sleep)
返回类型:struct z3fold_header
参数:
类型 | 参数 | 名称 |
---|---|---|
struct z3fold_pool * | pool | |
size_t | size | |
bool | can_sleep |
881 | struct z3fold_header * zhdr = NULL |
886 | lookup : |
888 | unbuddied等于get_cpu_ptr(unbuddied) |
895 | 如果非zhdr则继续下一循环 |
899 | 加自旋锁 |
911 | 删除链表项并重新初始化 |
912 | cpu等于负1 |
913 | 自旋锁解锁 |
915 | page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr) |
932 | 对象增加引用 |
933 | 退出 |
935 | put_cpu_ptr(unbuddied) |
937 | 如果非zhdr则 |
944 | unbuddied等于per_cpu_ptr(unbuddied, cpu) |
945 | 加自旋锁 |
951 | 如果非zhdr或非Try to lock a z3fold page 则 |
956 | 删除链表项并重新初始化 |
957 | cpu等于负1 |
958 | 自旋锁解锁 |
960 | page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr) |
969 | 对象增加引用 |
970 | 退出 |
974 | 返回:zhdr |
名称 | 描述 |
---|---|
compact_single_buddy | |
z3fold_alloc | z3fold_alloc() - allocates a region of a given size*@pool: z3fold pool from which to allocate*@size: size in bytes of the desired allocation*@gfp: gfp flags used if the pool needs to grow*@handle: handle of the new allocation* This function will attempt |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |