#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/workqueue.h>
#include <linux/capability.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/rfkill.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/wait.h>
#include <linux/poll.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include "rfkill.h"
Go to the source code of this file.
|
| MODULE_AUTHOR ("Ivo van Doorn <[email protected]>") |
|
| MODULE_AUTHOR ("Johannes Berg <[email protected]>") |
|
| MODULE_DESCRIPTION ("RF switch support") |
|
| MODULE_LICENSE ("GPL") |
|
| module_param_named (default_state, rfkill_default_state, uint, 0444) |
|
| MODULE_PARM_DESC (default_state,"Default initial state for all radio types, 0 = radio off") |
|
bool | rfkill_set_hw_state (struct rfkill *rfkill, bool blocked) |
|
| EXPORT_SYMBOL (rfkill_set_hw_state) |
|
bool | rfkill_set_sw_state (struct rfkill *rfkill, bool blocked) |
|
| EXPORT_SYMBOL (rfkill_set_sw_state) |
|
void | rfkill_init_sw_state (struct rfkill *rfkill, bool blocked) |
|
| EXPORT_SYMBOL (rfkill_init_sw_state) |
|
void | rfkill_set_states (struct rfkill *rfkill, bool sw, bool hw) |
|
| EXPORT_SYMBOL (rfkill_set_states) |
|
void | rfkill_pause_polling (struct rfkill *rfkill) |
|
| EXPORT_SYMBOL (rfkill_pause_polling) |
|
void | rfkill_resume_polling (struct rfkill *rfkill) |
|
| EXPORT_SYMBOL (rfkill_resume_polling) |
|
bool | rfkill_blocked (struct rfkill *rfkill) |
|
| EXPORT_SYMBOL (rfkill_blocked) |
|
struct rfkill *__must_check | rfkill_alloc (const char *name, struct device *parent, const enum rfkill_type type, const struct rfkill_ops *ops, void *ops_data) |
|
| EXPORT_SYMBOL (rfkill_alloc) |
|
int __must_check | rfkill_register (struct rfkill *rfkill) |
|
| EXPORT_SYMBOL (rfkill_register) |
|
void | rfkill_unregister (struct rfkill *rfkill) |
|
| EXPORT_SYMBOL (rfkill_unregister) |
|
void | rfkill_destroy (struct rfkill *rfkill) |
|
| EXPORT_SYMBOL (rfkill_destroy) |
|
| subsys_initcall (rfkill_init) |
|
| module_exit (rfkill_exit) |
|
#define POLL_INTERVAL (5 * HZ) |
Value:
RFKILL_BLOCK_SW |\
RFKILL_BLOCK_SW_PREV)
Definition at line 46 of file core.c.
#define RFKILL_BLOCK_HW BIT(0) |
#define RFKILL_BLOCK_SW BIT(1) |
#define RFKILL_BLOCK_SW_PREV BIT(2) |
#define RFKILL_BLOCK_SW_SETCALL BIT(31) |
MODULE_DESCRIPTION |
( |
"RF switch support" |
| ) |
|
module_exit |
( |
rfkill_exit |
| ) |
|
module_param_named |
( |
default_state |
, |
|
|
rfkill_default_state |
, |
|
|
uint |
, |
|
|
0444 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
default_state |
, |
|
|
"Default initial state for all radio |
types |
|
) |
| |
subsys_initcall |
( |
rfkill_init |
| ) |
|