Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
scan.c File Reference
#include <linux/device.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include "uwb-internal.h"

Go to the source code of this file.


int uwb_rc_scan (struct uwb_rc *rc, unsigned channel, enum uwb_scan_type type, unsigned bpst_offset)
 DEVICE_ATTR (scan, S_IRUGO|S_IWUSR, uwb_rc_scan_show, uwb_rc_scan_store)

Function Documentation

DEVICE_ATTR ( scan  ,
uwb_rc_scan_show  ,

Radio Control sysfs interface (declaration)

int uwb_rc_scan ( struct uwb_rc rc,
unsigned  channel,
enum uwb_scan_type  type,
unsigned  bpst_offset 

Start/stop scanning in a radio controller

: UWB Radio Controller : Channel to scan; encodings in WUSB1.0[Table 5.12] : Type of scanning to do. : value at which to start scanning (if type == UWB_SCAN_ONLY_STARTTIME)

: 0 if ok, < 0 errno code on error

We put the command on kmalloc'ed memory as some arches cannot do USB from the stack. The reply event is copied from an stage buffer, so it can be in the stack. See WUSB1.0[] for more details.

Definition at line 57 of file scan.c.