Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
op-reset.c File Reference
#include <net/wimax.h>
#include <net/genetlink.h>
#include <linux/wimax.h>
#include <linux/security.h>
#include <linux/export.h>
#include "wimax-internal.h"
#include "debug-levels.h"

Go to the source code of this file.

Macros

#define D_SUBMODULE   op_reset
 

Functions

int wimax_reset (struct wimax_dev *wimax_dev)
 
 EXPORT_SYMBOL (wimax_reset)
 

Variables

struct genl_ops wimax_gnl_reset
 

Macro Definition Documentation

#define D_SUBMODULE   op_reset

Definition at line 38 of file op-reset.c.

Function Documentation

EXPORT_SYMBOL ( wimax_reset  )
int wimax_reset ( struct wimax_dev wimax_dev)

wimax_reset - Reset a WiMAX device

: WiMAX device descriptor

Returns:

%0 if ok and a warm reset was done (the device still exists in the system).

-ENODEV if a cold/bus reset had to be done (device has disconnected and reconnected, so current handle is not valid any more).

-EINVAL if the device is not even registered.

Any other negative error code shall be considered as non-recoverable.

Description:

Called when wanting to reset the device for any reason. Device is taken back to power on status.

This call blocks; on successful return, the device has completed the reset process and is ready to operate.

Definition at line 69 of file op-reset.c.

Variable Documentation

struct genl_ops wimax_gnl_reset
Initial value:
= {
.flags = GENL_ADMIN_PERM,
.policy = wimax_gnl_reset_policy,
.doit = wimax_gnl_doit_reset,
.dumpit = NULL,
}

Definition at line 135 of file op-reset.c.