Linux Kernel
3.7.1
|
#include <linux/device.h>
#include <linux/gfp.h>
#include <net/genetlink.h>
#include <linux/netdevice.h>
#include <linux/wimax.h>
#include <linux/module.h>
#include "wimax-internal.h"
#include "debug-levels.h"
Go to the source code of this file.
Macros | |
#define | D_SUBMODULE stack |
EXPORT_SYMBOL_GPL | ( | wimax_state_change | ) |
EXPORT_SYMBOL_GPL | ( | wimax_state_get | ) |
EXPORT_SYMBOL_GPL | ( | wimax_dev_init | ) |
EXPORT_SYMBOL_GPL | ( | wimax_dev_add | ) |
EXPORT_SYMBOL_GPL | ( | wimax_dev_rm | ) |
MODULE_AUTHOR | ( | "Intel Corporation <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Linux WiMAX stack" | ) |
module_exit | ( | wimax_subsys_exit | ) |
module_init | ( | wimax_subsys_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
MODULE_PARM_DESC | ( | debug | , |
"String of space-separated NAME:VALUE | pairs, | ||
where NAMEs""are the different debug submodules and VALUE are the""initial debug value to set." | |||
) |
int wimax_dev_add | ( | struct wimax_dev * | wimax_dev, |
struct net_device * | net_dev | ||
) |
wimax_dev_add - Register a new WiMAX device
: WiMAX device descriptor (as embedded in your 's priv data). You must have called wimax_dev_init() on it before.
: net device the is associated with. The function expects SET_NETDEV_DEV() and register_netdev() were already called on it.
Registers the new WiMAX device, sets up the user-kernel control interface (generic netlink) and common WiMAX infrastructure.
Note that the parts that will allow interaction with user space are setup at the very end, when the rest is in place, as once that happens, the driver might get user space control requests via netlink or from debugfs that might translate into calls into wimax_dev->op_*().
wimax_dev_rm - Unregister an existing WiMAX device
: WiMAX device descriptor
Unregisters a WiMAX device previously registered for use with wimax_add_rm().
IMPORTANT! Must call before calling unregister_netdev().
After this function returns, you will not get any more user space control requests (via netlink or debugfs) and thus to wimax_dev->ops.
Reentrancy control is ensured by setting the state to __WIMAX_ST_QUIESCING. rfkill operations coming through wimax_*rfkill*() will be stopped by the quiescing state; ops coming from the rfkill subsystem will be stopped by the support being removed by wimax_rfkill_rm().
wimax_state_change - Set the current state of a WiMAX device
: WiMAX device descriptor (properly referenced) : New state to switch to
This implements the state changes for the wimax devices. It will
NOTE: must be locked
wimax_state_get() - Return the current state of a WiMAX device
: WiMAX device descriptor
Returns: Current state of the device according to its driver.
size_t D_LEVEL_SIZE = ARRAY_SIZE(D_LEVEL) |
struct genl_family wimax_gnl_family |
struct genl_multicast_group wimax_gnl_mcg |
struct genl_ops wimax_gnl_msg_from_user wimax_gnl_reset wimax_gnl_rfkill wimax_gnl_state_get |
Definition at line 77 of file op-state-get.c.