Linux Kernel
3.7.1
|
#include <rfkill.h>
Data Fields | |
void(* | poll )(struct rfkill *rfkill, void *data) |
void(* | query )(struct rfkill *rfkill, void *data) |
int(* | set_block )(void *data, bool blocked) |
struct rfkill_ops - rfkill driver methods
: poll the rfkill block state(s) – only assign this method when you need polling. When called, simply call one of the rfkill_set{,_hw,_sw}_state family of functions. If the hw is getting unblocked you need to take into account the return value of those functions to make sure the software block is properly used. : query the rfkill block state(s) and call exactly one of the rfkill_set{,_hw,_sw}_state family of functions. Assign this method if input events can cause hardware state changes to make the rfkill core query your driver before setting a requested block. : turn the transmitter on (blocked == false) or off (blocked == true) – ignore and return 0 when hard blocked. This callback must be assigned.