linux/drivers/net/wireless/intel
Naftali Goldstein dd2690579f iwlwifi: runtime: avoid calling debugfs read functions more than once
Upon first calling read() on a debugfs file, invoke
iwl_dbgfs_##name##_read and store the response buffer on the heap, so
subsequent read() calls don't need to invoke said function again.

This is done because cat etc will call read() repeatedly until EOF is
reached (or read() returns 0), which in the current implementation will
cause said function to be invoked multiple times.

With the current implementation this can also cause buggy behavior in
some weird edge cases where the first invocation returns a string of
length n, and the second of length m>n: The last m-n characters of
the second invocation will be printed to screen.

Signed-off-by: Naftali Goldstein <naftali.goldstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2018-08-31 11:38:16 +03:00
..
ipw2x00 ipw2x00: remove redundant variables len, ret, reason and crypt 2018-07-31 10:18:16 +03:00
iwlegacy iwlegacy: fix spelling mistake "acumulative" -> "accumulative" 2018-08-09 18:14:12 +03:00
iwlwifi iwlwifi: runtime: avoid calling debugfs read functions more than once 2018-08-31 11:38:16 +03:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile