#define pr_fmt(fmt) …
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/atmdev.h>
#include <linux/sonet.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bitops.h>
#include <linux/capability.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <net/sock.h>
#include "common.h"
#include "resources.h"
#include "addr.h"
LIST_HEAD(…);
DEFINE_MUTEX(…) …;
static struct atm_dev *__alloc_atm_dev(const char *type)
{ … }
static struct atm_dev *__atm_dev_lookup(int number)
{ … }
struct atm_dev *atm_dev_lookup(int number)
{ … }
EXPORT_SYMBOL(…);
struct atm_dev *atm_dev_register(const char *type, struct device *parent,
const struct atmdev_ops *ops, int number,
unsigned long *flags)
{ … }
EXPORT_SYMBOL(…);
void atm_dev_deregister(struct atm_dev *dev)
{ … }
EXPORT_SYMBOL(…);
static void copy_aal_stats(struct k_atm_aal_stats *from,
struct atm_aal_stats *to)
{ … }
static void subtract_aal_stats(struct k_atm_aal_stats *from,
struct atm_aal_stats *to)
{ … }
static int fetch_stats(struct atm_dev *dev, struct atm_dev_stats __user *arg,
int zero)
{ … }
int atm_getnames(void __user *buf, int __user *iobuf_len)
{ … }
int atm_dev_ioctl(unsigned int cmd, void __user *buf, int __user *sioc_len,
int number, int compat)
{ … }
#ifdef CONFIG_PROC_FS
void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos)
{ … }
void atm_dev_seq_stop(struct seq_file *seq, void *v)
{ … }
void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos)
{ … }
#endif