#include <linux/debugfs.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include "nvmet.h"
#include "debugfs.h"
struct dentry *nvmet_debugfs;
#define NVMET_DEBUGFS_ATTR(field) …
#define NVMET_DEBUGFS_RW_ATTR(field) …
static int nvmet_ctrl_hostnqn_show(struct seq_file *m, void *p)
{ … }
NVMET_DEBUGFS_ATTR(…);
static int nvmet_ctrl_kato_show(struct seq_file *m, void *p)
{ … }
NVMET_DEBUGFS_ATTR(…);
static int nvmet_ctrl_port_show(struct seq_file *m, void *p)
{ … }
NVMET_DEBUGFS_ATTR(…);
static const char *const csts_state_names[] = …;
static int nvmet_ctrl_state_show(struct seq_file *m, void *p)
{ … }
static ssize_t nvmet_ctrl_state_write(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{ … }
NVMET_DEBUGFS_RW_ATTR(…);
static int nvmet_ctrl_host_traddr_show(struct seq_file *m, void *p)
{ … }
NVMET_DEBUGFS_ATTR(…);
int nvmet_debugfs_ctrl_setup(struct nvmet_ctrl *ctrl)
{ … }
void nvmet_debugfs_ctrl_free(struct nvmet_ctrl *ctrl)
{ … }
int nvmet_debugfs_subsys_setup(struct nvmet_subsys *subsys)
{ … }
void nvmet_debugfs_subsys_free(struct nvmet_subsys *subsys)
{ … }
int __init nvmet_init_debugfs(void)
{ … }
void nvmet_exit_debugfs(void)
{ … }