函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:33:43
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:After a task dirtied this many pages, balance_dirty_pages_ratelimited()* will look to see if it needs to start dirty throttling.* If dirty_poll_interval is too low, big NUMA machines will call the expensive* global_zone_page_state() too often

函数原型:static unsigned long dirty_poll_interval(unsigned long dirty, unsigned long thresh)

返回类型:unsigned long

参数:

类型参数名称
unsigned longdirty
unsigned longthresh
1413  如果thresh大于dirty则返回:1UL左移log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (thresh - dirty)右移1位位
1416  返回:1
调用者
名称描述
balance_dirty_pagesalance_dirty_pages() must be called by processes which are generating dirty* data