函数逻辑报告 |
Source Code:mm\z3fold.c |
Create Date:2022-07-27 18:04:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_compact_page
函数原型:static void do_compact_page(struct z3fold_header *zhdr, bool locked)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct z3fold_header * | zhdr | |
bool | locked |
827 | pool等于zhdr_to_pool(zhdr) |
830 | page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr) |
831 | 如果locked则WARN_ON(Try to lock a z3fold page ) |
833 | 否则Lock a z3fold page |
837 | 返回 |
839 | 加自旋锁 |
840 | 删除链表项并重新初始化 |
841 | 自旋锁解锁 |
844 | atomic64_dec( & pages_nr) |
845 | 返回 |
852 | 返回 |
855 | 如果非foreign_handles且buddy_single(zhdr)且mapped_count恒等于0且compact_single_buddy(zhdr)则 |
859 | 否则Unlock a z3fold page |
861 | 返回 |
名称 | 描述 |
---|---|
compact_page_work | |
z3fold_free | z3fold_free() - frees the allocation associated with the given handle*@pool: pool in which the allocation resided*@handle: handle associated with the allocation returned by z3fold_alloc()* In the case that the z3fold page in which the allocation resides |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |