linux/net/atm/mpoa_proc.c

// SPDX-License-Identifier: GPL-2.0
#define pr_fmt(fmt)

#ifdef CONFIG_PROC_FS
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/ktime.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/atmmpc.h>
#include <linux/atm.h>
#include <linux/gfp.h>
#include "mpc.h"
#include "mpoa_caches.h"

/*
 * mpoa_proc.c: Implementation MPOA client's proc
 * file system statistics
 */

#if 1
#define dprintk(format, args...)
#else
#define dprintk
#endif

#if 0
#define ddprintk
#else
#define ddprintk(format, args...)
#endif

#define STAT_FILE_NAME

extern struct mpoa_client *mpcs;
extern struct proc_dir_entry *atm_proc_root;  /* from proc.c. */

static int proc_mpc_open(struct inode *inode, struct file *file);
static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
			      size_t nbytes, loff_t *ppos);

static int parse_qos(const char *buff);

static const struct proc_ops mpc_proc_ops =;

/*
 * Returns the state of an ingress cache entry as a string
 */
static const char *ingress_state_string(int state)
{}

/*
 * Returns the state of an egress cache entry as a string
 */
static const char *egress_state_string(int state)
{}

/*
 * FIXME: mpcs (and per-mpc lists) have no locking whatsoever.
 */

static void *mpc_start(struct seq_file *m, loff_t *pos)
{}

static void *mpc_next(struct seq_file *m, void *v, loff_t *pos)
{}

static void mpc_stop(struct seq_file *m, void *v)
{}

/*
 * READING function - called when the /proc/atm/mpoa file is read from.
 */
static int mpc_show(struct seq_file *m, void *v)
{}

static const struct seq_operations mpc_op =;

static int proc_mpc_open(struct inode *inode, struct file *file)
{}

static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
			      size_t nbytes, loff_t *ppos)
{}

static int parse_qos(const char *buff)
{}

/*
 * INITIALIZATION function - called when module is initialized/loaded.
 */
int mpc_proc_init(void)
{}

/*
 * DELETING function - called when module is removed.
 */
void mpc_proc_clean(void)
{}

#endif /* CONFIG_PROC_FS */