Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
debugfs.c File Reference
#include <linux/slab.h>
#include "core.h"
#include "debugfs.h"

Go to the source code of this file.

Macros

#define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...)
 
#define DEBUGFS_ADD(name)   debugfs_create_file(#name, S_IRUGO, phyd, &rdev->wiphy, &name## _ops);
 

Functions

 DEBUGFS_READONLY_FILE (rts_threshold, 20,"%d", wiphy->rts_threshold) DEBUGFS_READONLY_FILE(fragmentation_threshold
 
 DEBUGFS_READONLY_FILE (short_retry_limit, 20,"%d", wiphy->retry_short) DEBUGFS_READONLY_FILE(long_retry_limit
 
void cfg80211_debugfs_rdev_add (struct cfg80211_registered_device *rdev)
 

Variables

 d
 
wiphy frag_threshold
 
wiphy retry_long
 

Macro Definition Documentation

#define DEBUGFS_ADD (   name)    debugfs_create_file(#name, S_IRUGO, phyd, &rdev->wiphy, &name## _ops);

Definition at line 103 of file debugfs.c.

#define DEBUGFS_READONLY_FILE (   name,
  buflen,
  fmt,
  value... 
)
Value:
static ssize_t name## _read(struct file *file, char __user *userbuf, \
size_t count, loff_t *ppos) \
{ \
char buf[buflen]; \
int res; \
\
res = scnprintf(buf, buflen, fmt "\n", ##value); \
return simple_read_from_buffer(userbuf, count, ppos, buf, res); \
} \
\
static const struct file_operations name## _ops = { \
.read = name## _read, \
.open = simple_open, \
.llseek = generic_file_llseek, \
};

Definition at line 16 of file debugfs.c.

Function Documentation

void cfg80211_debugfs_rdev_add ( struct cfg80211_registered_device rdev)

Definition at line 106 of file debugfs.c.

DEBUGFS_READONLY_FILE ( rts_threshold  ,
20  ,
"%d"  ,
wiphy->  rts_threshold 
)
DEBUGFS_READONLY_FILE ( short_retry_limit  ,
20  ,
"%d"  ,
wiphy->  retry_short 
)

Variable Documentation

d

Definition at line 36 of file debugfs.c.

wiphy frag_threshold

Definition at line 36 of file debugfs.c.

wiphy retry_long

Definition at line 40 of file debugfs.c.