函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:propagate_protected_usage

函数原型:static void propagate_protected_usage(struct page_counter *c, unsigned long usage)

返回类型:void

参数:

类型参数名称
struct page_counter *c
unsigned longusage
22  如果非parent则返回
25  如果minatomic_long_read( & min_usage)则
26  如果usage小于等于minprotected等于usage
28  否则protected等于0
31  old_protected等于atomic_long_xchg( & min_usage, protected)
32  delta等于protectedold_protected
33  如果deltaatomic_long_add(delta, & children_min_usage)
37  如果lowatomic_long_read( & low_usage)则
38  如果usage小于等于lowprotected等于usage
40  否则protected等于0
43  old_protected等于atomic_long_xchg( & low_usage, protected)
44  delta等于protectedold_protected
45  如果deltaatomic_long_add(delta, & children_low_usage)
调用者
名称描述
page_counter_cancelpage_counter_cancel - take pages out of the local counter*@counter: counter*@nr_pages: number of pages to cancel
page_counter_chargepage_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_chargepage_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_minpage_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_lowpage_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.