#include <linux/kobject.h>
#include <linux/slab.h>
#include "ieee80211_i.h"
#include "key.h"
#include "debugfs.h"
#include "debugfs_key.h"
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 DEBUGFS_ADD | ( | name | ) |
debugfs_create_file(#name, 0400, key->debugfs.dir, \ key, &key_##name##_ops);
Definition at line 223 of file kernel-3.5/debugfs_key.c.
#define KEY_CONF_FILE | ( | name, | |
format | |||
) |
KEY_CONF_READ_##format(name) \ KEY_CONF_OPS(name)
Definition at line 52 of file kernel-3.5/debugfs_key.c.
#define KEY_CONF_OPS | ( | name | ) |
static const struct file_operations key_ ##name## _ops = { \ .read = key_conf_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ }
Definition at line 45 of file kernel-3.5/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.5/debugfs_key.c.
#define KEY_CONF_READ_D | ( | name | ) | KEY_CONF_READ(name, "%d\n") |
Definition at line 43 of file kernel-3.5/debugfs_key.c.
#define KEY_FILE | ( | name, | |
format | |||
) |
KEY_READ_##format(name) \ KEY_OPS(name)
Definition at line 37 of file kernel-3.5/debugfs_key.c.
#define KEY_OPS | ( | name | ) |
static const struct file_operations key_ ##name## _ops = { \ .read = key_##name##_read, \ .open = simple_open, \ .llseek = generic_file_llseek, \ }
Definition at line 30 of file kernel-3.5/debugfs_key.c.
#define KEY_READ | ( | name, | |
prop, | |||
format_string | |||
) |
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.5/debugfs_key.c.
#define KEY_READ_D | ( | name | ) | KEY_READ(name, name, "%d\n") |
Definition at line 27 of file kernel-3.5/debugfs_key.c.
#define KEY_READ_X | ( | name | ) | KEY_READ(name, name, "0x%x\n") |
Definition at line 28 of file kernel-3.5/debugfs_key.c.
void ieee80211_debugfs_key_add | ( | struct ieee80211_key * | key | ) |
Definition at line 227 of file kernel-3.5/debugfs_key.c.
void ieee80211_debugfs_key_add_mgmt_default | ( | struct ieee80211_sub_if_data * | sdata | ) |
Definition at line 311 of file kernel-3.5/debugfs_key.c.
void ieee80211_debugfs_key_remove | ( | struct ieee80211_key * | key | ) |
Definition at line 267 of file kernel-3.5/debugfs_key.c.
void ieee80211_debugfs_key_remove_mgmt_default | ( | struct ieee80211_sub_if_data * | sdata | ) |
Definition at line 330 of file kernel-3.5/debugfs_key.c.
void ieee80211_debugfs_key_sta_del | ( | struct ieee80211_key * | key, |
struct sta_info * | sta | ||
) |
Definition at line 339 of file kernel-3.5/debugfs_key.c.
void ieee80211_debugfs_key_update_default | ( | struct ieee80211_sub_if_data * | sdata | ) |
Definition at line 276 of file kernel-3.5/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.5/debugfs_key.c.
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] |
Definition at line 183 of file kernel-3.5/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.5/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 | ) |
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.5/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.5/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.5/debugfs_key.c.