Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sysfs.c File Reference
#include <linux/device.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/nl80211.h>
#include <linux/rtnetlink.h>
#include <net/cfg80211.h>
#include "sysfs.h"
#include "core.h"

Go to the source code of this file.

Macros

#define SHOW_FMT(name, fmt, member)
 

Functions

 SHOW_FMT (index,"%d", wiphy_idx)
 
 SHOW_FMT (macaddress,"%pM", wiphy.perm_addr)
 
 SHOW_FMT (address_mask,"%pM", wiphy.addr_mask)
 
int wiphy_sysfs_init (void)
 
void wiphy_sysfs_exit (void)
 

Variables

struct class ieee80211_class
 

Macro Definition Documentation

#define SHOW_FMT (   name,
  fmt,
  member 
)
Value:
static ssize_t name ## _show(struct device *dev, \
char *buf) \
{ \
return sprintf(buf, fmt "\n", dev_to_rdev(dev)->member); \
}

Definition at line 26 of file sysfs.c.

Function Documentation

SHOW_FMT ( index  ,
"%d"  ,
wiphy_idx   
)
SHOW_FMT ( macaddress  ,
"%pM"  ,
wiphy.  perm_addr 
)
SHOW_FMT ( address_mask  ,
"%pM"  ,
wiphy.  addr_mask 
)
void wiphy_sysfs_exit ( void  )

Definition at line 150 of file sysfs.c.

int wiphy_sysfs_init ( void  )

Definition at line 145 of file sysfs.c.

Variable Documentation

struct class ieee80211_class
Initial value:
= {
.name = "ieee80211",
.owner = THIS_MODULE,
.dev_release = wiphy_dev_release,
.dev_attrs = ieee80211_dev_attrs,
.suspend = wiphy_suspend,
.resume = wiphy_resume,
.namespace = wiphy_namespace,
}

Definition at line 131 of file sysfs.c.