Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-28 10:07:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:printk_timed_ratelimit - caller-controlled printk ratelimiting*@caller_jiffies: pointer to caller's state*@interval_msecs: minimum interval between prints* printk_timed_ratelimit() returns true if more than @interval_msecs* milliseconds have elapsed since

Proto:bool printk_timed_ratelimit(unsigned long *caller_jiffies, unsigned int interval_msecs)

Type:bool

Parameter:

TypeParameterName
unsigned long *caller_jiffies
unsigned intinterval_msecs
3033  elapsed = jiffies - caller_jiffies
3035  If caller_jiffies && elapsed <= msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than Then Return false
3038  caller_jiffies = jiffies
3039  Return true