Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
driver.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/kdev_t.h>
#include <linux/random.h>
#include "uwb-internal.h"

Go to the source code of this file.

Functions

 module_init (uwb_subsys_init)
 
 module_exit (uwb_subsys_exit)
 
 MODULE_AUTHOR ("Inaky Perez-Gonzalez <[email protected]>")
 
 MODULE_DESCRIPTION ("Ultra Wide Band core")
 
 MODULE_LICENSE ("GPL")
 

Variables

unsigned long beacon_timeout_ms = 500
 
struct class uwb_rc_class
 

Function Documentation

MODULE_AUTHOR ( "Inaky Perez-Gonzalez <[email protected]>"  )
MODULE_DESCRIPTION ( "Ultra Wide Band core )
module_exit ( uwb_subsys_exit  )
module_init ( uwb_subsys_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

unsigned long beacon_timeout_ms = 500

If a beacon disappears for longer than this, then we consider the device who was represented by that beacon to be gone.

ECMA-368[17.2.3, last para] establishes that a device must not consider a device to be its neighbour if he doesn't receive a beacon for more than mMaxLostBeacons. mMaxLostBeacons is defined in ECMA-368[17.16] as 3; because we can get only one beacon per superframe, that'd be 3 * 65ms = 195 ~ 200 ms. Let's give it time for jitter and stuff and make it 500 ms.

Definition at line 74 of file driver.c.

struct class uwb_rc_class
Initial value:
= {
.name = "uwb_rc",
.class_attrs = uwb_class_attrs,
}

Device model classes

Definition at line 105 of file driver.c.