#include <linux/fs.h>
#include <linux/fs_context.h>
#include <linux/mount.h>
#include <linux/pagemap.h>
#include <linux/init.h>
#include <linux/namei.h>
#include "qib.h"
#define QIBFS_MAGIC …
static struct super_block *qib_super;
#define private2dd(file) …
static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
umode_t mode, const struct file_operations *fops,
void *data)
{ … }
static int create_file(const char *name, umode_t mode,
struct dentry *parent, struct dentry **dentry,
const struct file_operations *fops, void *data)
{ … }
static ssize_t driver_stats_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static const char qib_statnames[] = …
;
static ssize_t driver_names_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations driver_ops[] = …;
static ssize_t dev_counters_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t dev_names_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations cntr_ops[] = …;
static ssize_t portnames_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t portcntrs_2_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations portcntr_ops[] = …;
static ssize_t qsfp_1_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t qsfp_2_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations qsfp_ops[] = …;
static ssize_t flash_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t flash_write(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations flash_ops = …;
static int add_cntr_files(struct super_block *sb, struct qib_devdata *dd)
{ … }
static int remove_device_files(struct super_block *sb,
struct qib_devdata *dd)
{ … }
static int qibfs_fill_super(struct super_block *sb, struct fs_context *fc)
{ … }
static int qibfs_get_tree(struct fs_context *fc)
{ … }
static const struct fs_context_operations qibfs_context_ops = …;
static int qibfs_init_fs_context(struct fs_context *fc)
{ … }
static void qibfs_kill_super(struct super_block *s)
{ … }
int qibfs_add(struct qib_devdata *dd)
{ … }
int qibfs_remove(struct qib_devdata *dd)
{ … }
static struct file_system_type qibfs_fs_type = …;
MODULE_ALIAS_FS(…) …;
int __init qib_init_qibfs(void)
{ … }
int __exit qib_exit_qibfs(void)
{ … }