Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
common.c File Reference
#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/net.h>
#include <linux/atm.h>
#include <linux/atmdev.h>
#include <linux/socket.h>
#include <linux/errno.h>
#include <linux/capability.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <net/sock.h>
#include <linux/uaccess.h>
#include <linux/poll.h>
#include <linux/atomic.h>
#include "resources.h"
#include "common.h"
#include "protocols.h"
#include "addr.h"
#include "signaling.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ":%s: " fmt, __func__
 

Functions

 EXPORT_SYMBOL (vcc_hash)
 
 DEFINE_RWLOCK (vcc_sklist_lock)
 
 EXPORT_SYMBOL (vcc_sklist_lock)
 
void vcc_insert_socket (struct sock *sk)
 
 EXPORT_SYMBOL (vcc_insert_socket)
 
int vcc_create (struct net *net, struct socket *sock, int protocol, int family)
 
int vcc_release (struct socket *sock)
 
void vcc_release_async (struct atm_vcc *vcc, int reply)
 
 EXPORT_SYMBOL (vcc_release_async)
 
void vcc_process_recv_queue (struct atm_vcc *vcc)
 
 EXPORT_SYMBOL (vcc_process_recv_queue)
 
void atm_dev_signal_change (struct atm_dev *dev, char signal)
 
 EXPORT_SYMBOL (atm_dev_signal_change)
 
void atm_dev_release_vccs (struct atm_dev *dev)
 
 EXPORT_SYMBOL (atm_dev_release_vccs)
 
int vcc_connect (struct socket *sock, int itf, short vpi, int vci)
 
int vcc_recvmsg (struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size, int flags)
 
int vcc_sendmsg (struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len)
 
unsigned int vcc_poll (struct file *file, struct socket *sock, poll_table *wait)
 
int vcc_setsockopt (struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen)
 
int vcc_getsockopt (struct socket *sock, int level, int optname, char __user *optval, int __user *optlen)
 
int register_atmdevice_notifier (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (register_atmdevice_notifier)
 
void unregister_atmdevice_notifier (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (unregister_atmdevice_notifier)
 
 subsys_initcall (atm_init)
 
 module_exit (atm_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NETPROTO (PF_ATMPVC)
 
 MODULE_ALIAS_NETPROTO (PF_ATMSVC)
 

Variables

struct hlist_head vcc_hash [VCC_HTABLE_SIZE]
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ":%s: " fmt, __func__

Definition at line 5 of file common.c.

Function Documentation

void atm_dev_release_vccs ( struct atm_dev dev)

Definition at line 254 of file common.c.

void atm_dev_signal_change ( struct atm_dev dev,
char  signal 
)

Definition at line 237 of file common.c.

DEFINE_RWLOCK ( vcc_sklist_lock  )
EXPORT_SYMBOL ( vcc_hash  )
EXPORT_SYMBOL ( vcc_sklist_lock  )
EXPORT_SYMBOL ( vcc_insert_socket  )
EXPORT_SYMBOL ( vcc_release_async  )
EXPORT_SYMBOL ( vcc_process_recv_queue  )
EXPORT_SYMBOL ( atm_dev_signal_change  )
EXPORT_SYMBOL ( atm_dev_release_vccs  )
EXPORT_SYMBOL_GPL ( register_atmdevice_notifier  )
EXPORT_SYMBOL_GPL ( unregister_atmdevice_notifier  )
MODULE_ALIAS_NETPROTO ( PF_ATMPVC  )
MODULE_ALIAS_NETPROTO ( PF_ATMSVC  )
module_exit ( atm_exit  )
MODULE_LICENSE ( "GPL"  )
int register_atmdevice_notifier ( struct notifier_block nb)

Definition at line 832 of file common.c.

subsys_initcall ( atm_init  )
void unregister_atmdevice_notifier ( struct notifier_block nb)

Definition at line 838 of file common.c.

int vcc_connect ( struct socket sock,
int  itf,
short  vpi,
int  vci 
)

Definition at line 455 of file common.c.

int vcc_create ( struct net net,
struct socket sock,
int  protocol,
int  family 
)

Definition at line 135 of file common.c.

int vcc_getsockopt ( struct socket sock,
int  level,
int  optname,
char __user optval,
int __user optlen 
)

Definition at line 788 of file common.c.

void vcc_insert_socket ( struct sock sk)

Definition at line 50 of file common.c.

unsigned int vcc_poll ( struct file file,
struct socket sock,
poll_table wait 
)

Definition at line 645 of file common.c.

void vcc_process_recv_queue ( struct atm_vcc vcc)

Definition at line 217 of file common.c.

int vcc_recvmsg ( struct kiocb iocb,
struct socket sock,
struct msghdr msg,
size_t  size,
int  flags 
)

Definition at line 515 of file common.c.

int vcc_release ( struct socket sock)

Definition at line 191 of file common.c.

void vcc_release_async ( struct atm_vcc vcc,
int  reply 
)

Definition at line 205 of file common.c.

int vcc_sendmsg ( struct kiocb iocb,
struct socket sock,
struct msghdr m,
size_t  total_len 
)

Definition at line 561 of file common.c.

int vcc_setsockopt ( struct socket sock,
int  level,
int  optname,
char __user optval,
unsigned int  optlen 
)

Definition at line 741 of file common.c.

Variable Documentation

Definition at line 34 of file common.c.