Defines | Functions
debugfs_key.c File Reference
#include <linux/kobject.h>
#include <linux/slab.h>
#include "ieee80211_i.h"
#include "key.h"
#include "debugfs.h"
#include "debugfs_key.h"
Include dependency graph for kernel-3.2/debugfs_key.c:

Go to the source code of this file.

Defines

#define DEBUGFS_ADD(name)
#define KEY_CONF_FILE(name, format)
#define KEY_CONF_OPS(name)
#define KEY_CONF_READ(name, format_string)   KEY_READ(conf_##name, conf.name, format_string)
#define KEY_CONF_READ_D(name)   KEY_CONF_READ(name, "%d\n")
#define KEY_FILE(name, format)
#define KEY_OPS(name)
#define KEY_READ(name, prop, format_string)
#define KEY_READ_D(name)   KEY_READ(name, name, "%d\n")
#define KEY_READ_X(name)   KEY_READ(name, name, "0x%x\n")

Functions

void ieee80211_debugfs_key_add (struct ieee80211_key *key)
void ieee80211_debugfs_key_add_mgmt_default (struct ieee80211_sub_if_data *sdata)
void ieee80211_debugfs_key_remove (struct ieee80211_key *key)
void ieee80211_debugfs_key_remove_mgmt_default (struct ieee80211_sub_if_data *sdata)
void ieee80211_debugfs_key_sta_del (struct ieee80211_key *key, struct sta_info *sta)
void ieee80211_debugfs_key_update_default (struct ieee80211_sub_if_data *sdata)
static ssize_t key_algorithm_read (struct file *file, char __user *userbuf, size_t count, loff_t *ppos)
 KEY_CONF_FILE (keylen, D)
 KEY_CONF_FILE (keyidx, D)
 KEY_CONF_FILE (hw_key_idx, D)
 KEY_FILE (flags, X)
 KEY_FILE (tx_rx_count, D)
static ssize_t key_icverrors_read (struct file *file, char __user *userbuf, size_t count, loff_t *ppos)
static ssize_t key_key_read (struct file *file, char __user *userbuf, size_t count, loff_t *ppos)
 KEY_OPS (ifindex)
 KEY_OPS (algorithm)
 KEY_OPS (tx_spec)
 KEY_OPS (rx_spec)
 KEY_OPS (replays)
 KEY_OPS (icverrors)
 KEY_OPS (key)
 KEY_READ (ifindex, sdata->name,"%s\n")
static ssize_t key_replays_read (struct file *file, char __user *userbuf, size_t count, loff_t *ppos)
static ssize_t key_rx_spec_read (struct file *file, char __user *userbuf, size_t count, loff_t *ppos)
static ssize_t key_tx_spec_read (struct file *file, char __user *userbuf, size_t count, loff_t *ppos)

Define Documentation

#define DEBUGFS_ADD (   name)
Value:
debugfs_create_file(#name, 0400, key->debugfs.dir, \
                            key, &key_##name##_ops);

Definition at line 223 of file kernel-3.2/debugfs_key.c.

#define KEY_CONF_FILE (   name,
  format 
)
Value:
KEY_CONF_READ_##format(name)                            \
                 KEY_CONF_OPS(name)

Definition at line 52 of file kernel-3.2/debugfs_key.c.

#define KEY_CONF_OPS (   name)
Value:
static const struct file_operations key_ ##name## _ops = {              \
        .read = key_conf_##name##_read,                                 \
        .open = mac80211_open_file_generic,                             \
        .llseek = generic_file_llseek,                                  \
}

Definition at line 45 of file kernel-3.2/debugfs_key.c.

#define KEY_CONF_READ (   name,
  format_string 
)    KEY_READ(conf_##name, conf.name, format_string)

Definition at line 41 of file kernel-3.2/debugfs_key.c.

#define KEY_CONF_READ_D (   name)    KEY_CONF_READ(name, "%d\n")

Definition at line 43 of file kernel-3.2/debugfs_key.c.

#define KEY_FILE (   name,
  format 
)
Value:
KEY_READ_##format(name)                         \
                 KEY_OPS(name)

Definition at line 37 of file kernel-3.2/debugfs_key.c.

#define KEY_OPS (   name)
Value:
static const struct file_operations key_ ##name## _ops = {              \
        .read = key_##name##_read,                                      \
        .open = mac80211_open_file_generic,                             \
        .llseek = generic_file_llseek,                                  \
}

Definition at line 30 of file kernel-3.2/debugfs_key.c.

#define KEY_READ (   name,
  prop,
  format_string 
)
Value:
static ssize_t key_##name##_read(struct file *file,                     \
                                 char __user *userbuf,                  \
                                 size_t count, loff_t *ppos)            \
{                                                                       \
        struct ieee80211_key *key = file->private_data;                 \
        return mac80211_format_buffer(userbuf, count, ppos,             \
                                      format_string, key->prop);        \
}

Definition at line 18 of file kernel-3.2/debugfs_key.c.

#define KEY_READ_D (   name)    KEY_READ(name, name, "%d\n")

Definition at line 27 of file kernel-3.2/debugfs_key.c.

#define KEY_READ_X (   name)    KEY_READ(name, name, "0x%x\n")

Definition at line 28 of file kernel-3.2/debugfs_key.c.


Function Documentation

void ieee80211_debugfs_key_add ( struct ieee80211_key key)

Definition at line 227 of file kernel-3.2/debugfs_key.c.

Definition at line 310 of file kernel-3.2/debugfs_key.c.

Definition at line 266 of file kernel-3.2/debugfs_key.c.

Definition at line 329 of file kernel-3.2/debugfs_key.c.

void ieee80211_debugfs_key_sta_del ( struct ieee80211_key key,
struct sta_info sta 
)

Definition at line 338 of file kernel-3.2/debugfs_key.c.

Definition at line 275 of file kernel-3.2/debugfs_key.c.

static ssize_t key_algorithm_read ( struct file *  file,
char __user *  userbuf,
size_t  count,
loff_t *  ppos 
) [static]

Definition at line 64 of file kernel-3.2/debugfs_key.c.

KEY_CONF_FILE ( keylen  ,
 
)
KEY_CONF_FILE ( keyidx  ,
 
)
KEY_CONF_FILE ( hw_key_idx  ,
 
)
KEY_FILE ( flags  ,
 
)
KEY_FILE ( tx_rx_count  ,
 
)
static ssize_t key_icverrors_read ( struct file *  file,
char __user *  userbuf,
size_t  count,
loff_t *  ppos 
) [static]

Definition at line 183 of file kernel-3.2/debugfs_key.c.

static ssize_t key_key_read ( struct file *  file,
char __user *  userbuf,
size_t  count,
loff_t *  ppos 
) [static]

Definition at line 202 of file kernel-3.2/debugfs_key.c.

KEY_OPS ( ifindex  )
KEY_OPS ( algorithm  )
KEY_OPS ( tx_spec  )
KEY_OPS ( rx_spec  )
KEY_OPS ( replays  )
KEY_OPS ( icverrors  )
KEY_OPS ( key  )
KEY_READ ( ifindex  ,
sdata->  name,
"%s\n  
)
static ssize_t key_replays_read ( struct file *  file,
char __user *  userbuf,
size_t  count,
loff_t *  ppos 
) [static]

Definition at line 161 of file kernel-3.2/debugfs_key.c.

static ssize_t key_rx_spec_read ( struct file *  file,
char __user *  userbuf,
size_t  count,
loff_t *  ppos 
) [static]

Definition at line 115 of file kernel-3.2/debugfs_key.c.

static ssize_t key_tx_spec_read ( struct file *  file,
char __user *  userbuf,
size_t  count,
loff_t *  ppos 
) [static]

Definition at line 78 of file kernel-3.2/debugfs_key.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12