函数逻辑报告 |
Source Code:mm\memfd.c |
Create Date:2022-07-27 18:13:16 |
Last Modify:2022-05-20 10:27:46 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Setting SEAL_WRITE requires us to verify there's no pending writer. However,* via get_user_pages(), drivers might have some pending I/O without any active* user-space mappings (eg., direct-IO, AIO). Therefore, we look at all pages
函数原型:static int memfd_wait_for_pins(struct address_space *mapping)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct address_space * | mapping |
72 | memfd_tag_pins( & xas) |
74 | error等于0 |
75 | 以scan小于等于about 150ms max 循环 |
76 | tagged等于0 |
81 | 如果非scan则lru_add_drain_all() |
83 | 否则如果schedule_timeout_killable((HZ << scan) / 200)则scan等于about 150ms max |
87 | xas_lock_irq( & xas) |
89 | bool clear = true |
92 | page等于find_subpage(page, xa_index) |
93 | 如果page_count(page)减page_mapcount(page)不等于1则 |
99 | 如果scan恒等于about 150ms max 则error等于负EBUSY |
101 | 否则clear = false |
106 | 如果tagged先自加取模XA_CHECK_SCHED则继续下一循环 |
110 | xas_unlock_irq( & xas) |
111 | cond_resched() |
112 | xas_lock_irq( & xas) |
114 | xas_unlock_irq( & xas) |
117 | 返回:error |
名称 | 描述 |
---|---|
memfd_add_seals |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |