1 /* Public domain. */ 2 3 #ifndef _LINUX_RATELIMIT_H 4 #define _LINUX_RATELIMIT_H 5 6 struct ratelimit_state { 7 }; 8 9 #define DEFINE_RATELIMIT_STATE(name, interval, burst) \ 10 struct ratelimit_state name 11 12 #define RATELIMIT_MSG_ON_RELEASE (1 << 0) 13 14 static inline int __ratelimit(struct ratelimit_state * rs)15__ratelimit(struct ratelimit_state *rs) 16 { 17 return 1; 18 } 19 20 static inline void ratelimit_state_init(struct ratelimit_state * rs,int interval,int burst)21ratelimit_state_init(struct ratelimit_state *rs, int interval, int burst) 22 { 23 } 24 25 static inline void ratelimit_set_flags(struct ratelimit_state * rs,unsigned long flags)26ratelimit_set_flags(struct ratelimit_state *rs, unsigned long flags) 27 { 28 } 29 30 #endif 31