linux/drivers/isdn/capi/kcapi_proc.c

/*
 * Kernel CAPI 2.0 Module - /proc/capi handling
 *
 * Copyright 1999 by Carsten Paeth <[email protected]>
 * Copyright 2002 by Kai Germaschewski <[email protected]>
 *
 * This software may be used and distributed according to the terms
 * of the GNU General Public License, incorporated herein by reference.
 *
 */


#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)
{}

// /proc/capi
// ===========================================================================

// /proc/capi/controller:
//      cnr driver cardstate name driverinfo
// /proc/capi/contrstats:
//      cnr nrecvctlpkt nrecvdatapkt nsentctlpkt nsentdatapkt
// ---------------------------------------------------------------------------

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 =;

// /proc/capi/applications:
//      applid l3cnt dblkcnt dblklen #ncci recvqueuelen
// /proc/capi/applstats:
//      applid nrecvctlpkt nrecvdatapkt nsentctlpkt nsentdatapkt
// ---------------------------------------------------------------------------

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 =;

// ---------------------------------------------------------------------------

/* /proc/capi/drivers is always empty */
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)
{}