函数逻辑报告 |
Source Code:mm\page_counter.c |
Create Date:2022-07-27 17:41:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:propagate_protected_usage
函数原型:static void propagate_protected_usage(struct page_counter *c, unsigned long usage)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page_counter * | c | |
unsigned long | usage |
22 | 如果非parent则返回 |
25 | 如果min或atomic_long_read( & min_usage)则 |
28 | 否则protected等于0 |
31 | old_protected等于atomic_long_xchg( & min_usage, protected) |
33 | 如果delta则atomic_long_add(delta, & children_min_usage) |
37 | 如果low或atomic_long_read( & low_usage)则 |
40 | 否则protected等于0 |
43 | old_protected等于atomic_long_xchg( & low_usage, protected) |
45 | 如果delta则atomic_long_add(delta, & children_low_usage) |
名称 | 描述 |
---|---|
page_counter_cancel | page_counter_cancel - take pages out of the local counter*@counter: counter*@nr_pages: number of pages to cancel |
page_counter_charge | page_counter_charge - hierarchically charge pages*@counter: counter*@nr_pages: number of pages to charge* NOTE: This does not consider any configured counter limits. |
page_counter_try_charge | page_counter_try_charge - try to hierarchically charge pages*@counter: counter*@nr_pages: number of pages to charge*@fail: points first counter to hit its limit, if any* Returns %true on success, or %false and @fail if the counter or one |
page_counter_set_min | page_counter_set_min - set the amount of protected memory*@counter: counter*@nr_pages: value to set* The caller must serialize invocations on the same counter. |
page_counter_set_low | page_counter_set_low - set the amount of protected memory*@counter: counter*@nr_pages: value to set* The caller must serialize invocations on the same counter. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |