ratelimit.c (edaac8e3167501cda336231d00611bf59c164346) | ratelimit.c (3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5) |
---|---|
1/* 2 * ratelimit.c - Do something with rate limit. 3 * 4 * Isolated from kernel/printk.c by Dave Young <hidave.darkstar@gmail.com> 5 * 6 * 2008-05-01 rewrite the function and use a ratelimit_state data struct as 7 * parameter. Now every user can use their own standalone ratelimit_state. 8 * 9 * This file is released under the GPLv2. 10 */ 11 | 1/* 2 * ratelimit.c - Do something with rate limit. 3 * 4 * Isolated from kernel/printk.c by Dave Young <hidave.darkstar@gmail.com> 5 * 6 * 2008-05-01 rewrite the function and use a ratelimit_state data struct as 7 * parameter. Now every user can use their own standalone ratelimit_state. 8 * 9 * This file is released under the GPLv2. 10 */ 11 |
12#include <linux/kernel.h> | 12#include <linux/ratelimit.h> |
13#include <linux/jiffies.h> 14#include <linux/module.h> 15 16/* 17 * __ratelimit - rate limiting 18 * @rs: ratelimit_state data 19 * 20 * This enforces a rate limit: not more than @rs->ratelimit_burst callbacks --- 42 unchanged lines hidden --- | 13#include <linux/jiffies.h> 14#include <linux/module.h> 15 16/* 17 * __ratelimit - rate limiting 18 * @rs: ratelimit_state data 19 * 20 * This enforces a rate limit: not more than @rs->ratelimit_burst callbacks --- 42 unchanged lines hidden --- |