linux/net/atm/ioctl.c

// SPDX-License-Identifier: GPL-2.0
/* ATM ioctl handling */

/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
/* 2003 John Levon  <[email protected]> */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/net.h>		/* struct socket, struct proto_ops */
#include <linux/atm.h>		/* ATM stuff */
#include <linux/atmdev.h>
#include <linux/atmclip.h>	/* CLIP_*ENCAP */
#include <linux/atmarp.h>	/* manifest constants */
#include <linux/capability.h>
#include <linux/sonet.h>	/* for ioctls */
#include <linux/atmsvc.h>
#include <linux/atmmpc.h>
#include <net/atmclip.h>
#include <linux/atmlec.h>
#include <linux/mutex.h>
#include <asm/ioctls.h>
#include <net/compat.h>

#include "resources.h"
#include "signaling.h"		/* for WAITING and sigd_attach */
#include "common.h"


static DEFINE_MUTEX(ioctl_mutex);
static LIST_HEAD(ioctl_list);


void register_atm_ioctl(struct atm_ioctl *ioctl)
{}
EXPORT_SYMBOL();

void deregister_atm_ioctl(struct atm_ioctl *ioctl)
{}
EXPORT_SYMBOL();

static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
			unsigned long arg, int compat)
{}

int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
{}

#ifdef CONFIG_COMPAT
/*
 * FIXME:
 * The compat_ioctl handling is duplicated, using both these conversion
 * routines and the compat argument to the actual handlers. Both
 * versions are somewhat incomplete and should be merged, e.g. by
 * moving the ioctl number translation into the actual handlers and
 * killing the conversion code.
 *
 * -arnd, November 2009
 */
#define ATM_GETLINKRATE32
#define ATM_GETNAMES32
#define ATM_GETTYPE32
#define ATM_GETESI32
#define ATM_GETADDR32
#define ATM_RSTADDR32
#define ATM_ADDADDR32
#define ATM_DELADDR32
#define ATM_GETCIRANGE32
#define ATM_SETCIRANGE32
#define ATM_SETESI32
#define ATM_SETESIF32
#define ATM_GETSTAT32
#define ATM_GETSTATZ32
#define ATM_GETLOOP32
#define ATM_SETLOOP32
#define ATM_QUERYLOOP32

static struct {} atm_ioctl_map[] =;

#define NR_ATM_IOCTL

static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
			unsigned long arg)
{}

static int do_atmif_sioc(struct socket *sock, unsigned int cmd,
			 unsigned long arg)
{}

static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,
			unsigned long arg)
{}

int vcc_compat_ioctl(struct socket *sock, unsigned int cmd,
		     unsigned long arg)
{}
#endif