Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
rfkill_ops Struct Reference

#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)

Detailed Description

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.

Definition at line 61 of file rfkill.h.

Field Documentation

Definition at line 62 of file rfkill.h.

void(* query)(struct rfkill *rfkill, void *data)

Definition at line 63 of file rfkill.h.

int(* set_block)(void *data, bool blocked)

Definition at line 64 of file rfkill.h.

The documentation for this struct was generated from the following file: