#include <net/6lowpan.h>
#include "6lowpan_i.h"
#define LOWPAN_DEBUGFS_CTX_PFX_NUM_ARGS …
static struct dentry *lowpan_debugfs;
static int lowpan_ctx_flag_active_set(void *data, u64 val)
{ … }
static int lowpan_ctx_flag_active_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int lowpan_ctx_flag_c_set(void *data, u64 val)
{ … }
static int lowpan_ctx_flag_c_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int lowpan_ctx_plen_set(void *data, u64 val)
{ … }
static int lowpan_ctx_plen_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int lowpan_ctx_pfx_show(struct seq_file *file, void *offset)
{ … }
static int lowpan_ctx_pfx_open(struct inode *inode, struct file *file)
{ … }
static ssize_t lowpan_ctx_pfx_write(struct file *fp,
const char __user *user_buf, size_t count,
loff_t *ppos)
{ … }
static const struct file_operations lowpan_ctx_pfx_fops = …;
static void lowpan_dev_debugfs_ctx_init(struct net_device *dev,
struct dentry *ctx, u8 id)
{ … }
static int lowpan_context_show(struct seq_file *file, void *offset)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int lowpan_short_addr_get(void *data, u64 *val)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static void lowpan_dev_debugfs_802154_init(const struct net_device *dev,
struct lowpan_dev *ldev)
{ … }
void lowpan_dev_debugfs_init(struct net_device *dev)
{ … }
void lowpan_dev_debugfs_exit(struct net_device *dev)
{ … }
void __init lowpan_debugfs_init(void)
{ … }
void lowpan_debugfs_exit(void)
{ … }