Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
atmdev.h File Reference
#include <linux/wait.h>
#include <linux/time.h>
#include <linux/net.h>
#include <linux/bug.h>
#include <linux/skbuff.h>
#include <linux/uio.h>
#include <net/sock.h>
#include <linux/atomic.h>
#include <uapi/linux/atmdev.h>

Go to the source code of this file.

Data Structures

struct  k_atm_aal_stats
 
struct  k_atm_dev_stats
 
struct  atm_vcc
 
struct  atm_dev_addr
 
struct  atm_dev
 
struct  atmdev_ops
 
struct  atmphy_ops
 
struct  atm_skb_data
 
struct  atm_ioctl
 

Macros

#define __HANDLE_ITEM(i)   atomic_t i
 
#define ATM_VF2VS(flags)
 
#define ATM_PHY_SIG_LOST   0 /* no carrier/light */
 
#define ATM_PHY_SIG_UNKNOWN   1 /* carrier/light status is unknown */
 
#define ATM_PHY_SIG_FOUND   2 /* carrier/light okay */
 
#define ATM_ATMOPT_CLP   1 /* set CLP bit */
 
#define ATM_OF_IMMED   1 /* Attempt immediate delivery */
 
#define ATM_OF_INRATE   2 /* Attempt in-rate delivery */
 
#define VCC_HTABLE_SIZE   32
 
#define ATM_SKB(skb)   (((struct atm_skb_data *) (skb)->cb))
 

Enumerations

enum  {
  ATM_VF_ADDR, ATM_VF_READY, ATM_VF_PARTIAL, ATM_VF_REGIS,
  ATM_VF_BOUND, ATM_VF_RELEASED, ATM_VF_HASQOS, ATM_VF_LISTEN,
  ATM_VF_META, ATM_VF_SESSION, ATM_VF_HASSAP, ATM_VF_CLOSE,
  ATM_VF_WAITING, ATM_VF_IS_CLIP
}
 
enum  { ATM_DF_REMOVED }
 
enum  atm_addr_type_t { ATM_ADDR_LOCAL, ATM_ADDR_LECS }
 

Functions

struct atm_devatm_dev_register (const char *type, struct device *parent, const struct atmdev_ops *ops, int number, unsigned long *flags)
 
struct atm_devatm_dev_lookup (int number)
 
void atm_dev_deregister (struct atm_dev *dev)
 
void atm_dev_signal_change (struct atm_dev *dev, char signal)
 
void vcc_insert_socket (struct sock *sk)
 
void atm_dev_release_vccs (struct atm_dev *dev)
 
int atm_charge (struct atm_vcc *vcc, int truesize)
 
struct sk_buffatm_alloc_charge (struct atm_vcc *vcc, int pdu_size, gfp_t gfp_flags)
 
int atm_pcr_goal (const struct atm_trafprm *tp)
 
void vcc_release_async (struct atm_vcc *vcc, int reply)
 
void register_atm_ioctl (struct atm_ioctl *)
 
void deregister_atm_ioctl (struct atm_ioctl *)
 
int register_atmdevice_notifier (struct notifier_block *nb)
 
void unregister_atmdevice_notifier (struct notifier_block *nb)
 

Variables

struct hlist_head vcc_hash [VCC_HTABLE_SIZE]
 
rwlock_t vcc_sklist_lock
 

Macro Definition Documentation

#define __HANDLE_ITEM (   i)    atomic_t i

Definition at line 31 of file atmdev.h.

#define ATM_ATMOPT_CLP   1 /* set CLP bit */

Definition at line 88 of file atmdev.h.

#define ATM_OF_IMMED   1 /* Attempt immediate delivery */

Definition at line 172 of file atmdev.h.

#define ATM_OF_INRATE   2 /* Attempt in-rate delivery */

Definition at line 173 of file atmdev.h.

#define ATM_PHY_SIG_FOUND   2 /* carrier/light okay */

Definition at line 86 of file atmdev.h.

#define ATM_PHY_SIG_LOST   0 /* no carrier/light */

Definition at line 84 of file atmdev.h.

#define ATM_PHY_SIG_UNKNOWN   1 /* carrier/light status is unknown */

Definition at line 85 of file atmdev.h.

#define ATM_SKB (   skb)    (((struct atm_skb_data *) (skb)->cb))

Definition at line 220 of file atmdev.h.

#define ATM_VF2VS (   flags)
Value:

Definition at line 71 of file atmdev.h.

#define VCC_HTABLE_SIZE   32

Definition at line 215 of file atmdev.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ATM_VF_ADDR 
ATM_VF_READY 
ATM_VF_PARTIAL 
ATM_VF_REGIS 
ATM_VF_BOUND 
ATM_VF_RELEASED 
ATM_VF_HASQOS 
ATM_VF_LISTEN 
ATM_VF_META 
ATM_VF_SESSION 
ATM_VF_HASSAP 
ATM_VF_CLOSE 
ATM_VF_WAITING 
ATM_VF_IS_CLIP 

Definition at line 45 of file atmdev.h.

anonymous enum
Enumerator:
ATM_DF_REMOVED 

Definition at line 79 of file atmdev.h.

Enumerator:
ATM_ADDR_LOCAL 
ATM_ADDR_LECS 

Definition at line 141 of file atmdev.h.

Function Documentation

struct sk_buff* atm_alloc_charge ( struct atm_vcc vcc,
int  pdu_size,
gfp_t  gfp_flags 
)
read

Definition at line 25 of file atm_misc.c.

int atm_charge ( struct atm_vcc vcc,
int  truesize 
)

Definition at line 14 of file atm_misc.c.

void atm_dev_deregister ( struct atm_dev dev)

Definition at line 138 of file resources.c.

struct atm_dev* atm_dev_lookup ( int  number)
read

Definition at line 66 of file resources.c.

struct atm_dev* atm_dev_register ( const char type,
struct device parent,
const struct atmdev_ops ops,
int  number,
unsigned long flags 
)
read

Definition at line 77 of file resources.c.

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.

int atm_pcr_goal ( const struct atm_trafprm tp)

Definition at line 75 of file atm_misc.c.

void deregister_atm_ioctl ( struct atm_ioctl )

deregister_atm_ioctl - remove the ioctl handler

Definition at line 42 of file ioctl.c.

void register_atm_ioctl ( struct atm_ioctl )

register_atm_ioctl - register handler for ioctl operations

Special (non-device) handlers of ioctl's should register here. If you're a normal device, you should set .ioctl in your atmdev_ops instead.

Definition at line 34 of file ioctl.c.

int register_atmdevice_notifier ( struct notifier_block nb)

Definition at line 832 of file common.c.

void unregister_atmdevice_notifier ( struct notifier_block nb)

Definition at line 838 of file common.c.

void vcc_insert_socket ( struct sock sk)

Definition at line 50 of file common.c.

void vcc_release_async ( struct atm_vcc vcc,
int  reply 
)

Definition at line 205 of file common.c.

Variable Documentation

Definition at line 34 of file common.c.

rwlock_t vcc_sklist_lock