Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 4e73e0eb633f8a1b5cbf20e7f42c6dbfec1d1ca7 20 lines 433 B view raw
1#ifndef _LINUX_RATELIMIT_H 2#define _LINUX_RATELIMIT_H 3#include <linux/param.h> 4 5#define DEFAULT_RATELIMIT_INTERVAL (5 * HZ) 6#define DEFAULT_RATELIMIT_BURST 10 7 8struct ratelimit_state { 9 int interval; 10 int burst; 11 int printed; 12 int missed; 13 unsigned long begin; 14}; 15 16#define DEFINE_RATELIMIT_STATE(name, interval, burst) \ 17 struct ratelimit_state name = {interval, burst,} 18 19extern int __ratelimit(struct ratelimit_state *rs); 20#endif