Search Linux Wireless

Re: [PATCH v2 02/10] wil6210: introduce wil_err_ratelimited()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2014-12-02 at 11:46 +0200, Vladimir Kondratiev wrote:
> Add rate-limited flavor of wil_err(); in some cases,
> specially in IRQ and data path, if something went wrong,
> error message may be printed at very high rate, rendering
> whole system unresponsive or unstable.
> Need to do real function and not a macro to have arguments
> always evaluated.

net_<foo>_ratelimited uses the same form.

include/linux/net.h:#define net_ratelimited_function(function, ...)             
include/linux/net.h-do {                                                        
include/linux/net.h-    if (net_ratelimit())                                    
include/linux/net.h-            function(__VA_ARGS__);                          
include/linux/net.h-} while (0)

include/linux/net.h-#define net_err_ratelimited(fmt, ...)                       
include/linux/net.h:    net_ratelimited_function(pr_err, fmt, ##__VA_ARGS__)


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux