Function report |
Source Code:lib\ratelimit.c |
Create Date:2022-07-28 06:14:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__ratelimit - rate limiting*@rs: ratelimit_state data*@func: name of calling function* This enforces a rate limit: not more than @rs->burst callbacks* in every @rs->interval* RETURNS:* 0 means callbacks will be suppressed.* 1 means go ahead and do it.
Proto:int ___ratelimit(struct ratelimit_state *rs, const char *func)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ratelimit_state * | rs | |
| const char * | func |
| 32 | If Not interval Then Return 1 |
| 41 | If Not raw_spin_trylock_irqsave( & protect the state , flags) Then Return 0 |
| 62 | Else |
| 68 | Return ret |
| Name | Describe |
|---|---|
| __printk_ratelimit |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |