#include "kcapi.h"
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/export.h>
static char *state2str(unsigned short state)
{ … }
static void *controller_start(struct seq_file *seq, loff_t *pos)
__acquires(capi_controller_lock)
{ … }
static void *controller_next(struct seq_file *seq, void *v, loff_t *pos)
{ … }
static void controller_stop(struct seq_file *seq, void *v)
__releases(capi_controller_lock)
{ … }
static int controller_show(struct seq_file *seq, void *v)
{ … }
static int contrstats_show(struct seq_file *seq, void *v)
{ … }
static const struct seq_operations seq_controller_ops = …;
static const struct seq_operations seq_contrstats_ops = …;
static void *applications_start(struct seq_file *seq, loff_t *pos)
__acquires(capi_controller_lock)
{ … }
static void *
applications_next(struct seq_file *seq, void *v, loff_t *pos)
{ … }
static void applications_stop(struct seq_file *seq, void *v)
__releases(capi_controller_lock)
{ … }
static int
applications_show(struct seq_file *seq, void *v)
{ … }
static int
applstats_show(struct seq_file *seq, void *v)
{ … }
static const struct seq_operations seq_applications_ops = …;
static const struct seq_operations seq_applstats_ops = …;
static ssize_t empty_read(struct file *file, char __user *buf,
size_t size, loff_t *off)
{ … }
static const struct proc_ops empty_proc_ops = …;
void __init
kcapi_proc_init(void)
{ … }
void
kcapi_proc_exit(void)
{ … }