'\" t .\" Title: printk_timed_ratelimit .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "PRINTK_TIMED_RATELIM" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" printk_timed_ratelimit \- caller\-controlled printk ratelimiting .SH "SYNOPSIS" .HP \w'bool\ printk_timed_ratelimit('u .BI "bool printk_timed_ratelimit(unsigned\ long\ *\ " "caller_jiffies" ", unsigned\ int\ " "interval_msecs" ");" .SH "ARGUMENTS" .PP \fIcaller_jiffies\fR .RS 4 pointer to caller\*(Aqs state .RE .PP \fIinterval_msecs\fR .RS 4 minimum interval between prints .RE .SH "DESCRIPTION" .PP \fBprintk_timed_ratelimit\fR returns true if more than \fIinterval_msecs\fR milliseconds have elapsed since the last time \fBprintk_timed_ratelimit\fR returned true\&. .SH "COPYRIGHT" .br