mac80211: annotate sleeping driver ops
authorKalle Valo <kalle.valo@iki.fi>
Wed, 23 Dec 2009 12:15:47 +0000 (13:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Dec 2009 21:55:10 +0000 (16:55 -0500)
commite1781ed33a8809c58ad6c3b6d432d656446efa43
tree4d272bc5bf25263a67b8431e7cfac6f9bbbcb690
parent095d5ef608b58ece49f4131925700d27314ecdd8
mac80211: annotate sleeping driver ops

To make it easier to notice cases of calling sleeping ops in atomic context,
annotate driver-ops.h with appropiate might_sleep() calls. At the same time,
also document in mac80211.h the op functions with missing contexts.

mac80211 doesn't seem to use get_tx_stats anywhere currently. Just to be on
the safe side, I documented it to be atomic, but hopefully the op can be
removed in the future.

Compile-tested only.

Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/driver-ops.h