Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
atm_misc.c File Reference
#include <linux/module.h>
#include <linux/atm.h>
#include <linux/atmdev.h>
#include <linux/skbuff.h>
#include <linux/sonet.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/atomic.h>

Go to the source code of this file.

Macros

#define __HANDLE_ITEM(i)   to->i = atomic_read(&from->i)
 
#define __HANDLE_ITEM(i)   atomic_sub(to->i, &from->i)
 

Functions

int atm_charge (struct atm_vcc *vcc, int truesize)
 
 EXPORT_SYMBOL (atm_charge)
 
struct sk_buffatm_alloc_charge (struct atm_vcc *vcc, int pdu_size, gfp_t gfp_flags)
 
 EXPORT_SYMBOL (atm_alloc_charge)
 
int atm_pcr_goal (const struct atm_trafprm *tp)
 
 EXPORT_SYMBOL (atm_pcr_goal)
 
void sonet_copy_stats (struct k_sonet_stats *from, struct sonet_stats *to)
 
 EXPORT_SYMBOL (sonet_copy_stats)
 
void sonet_subtract_stats (struct k_sonet_stats *from, struct sonet_stats *to)
 
 EXPORT_SYMBOL (sonet_subtract_stats)
 

Macro Definition Documentation

#define __HANDLE_ITEM (   i)    to->i = atomic_read(&from->i)
#define __HANDLE_ITEM (   i)    atomic_sub(to->i, &from->i)

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.

int atm_pcr_goal ( const struct atm_trafprm tp)

Definition at line 75 of file atm_misc.c.

EXPORT_SYMBOL ( atm_charge  )
EXPORT_SYMBOL ( atm_alloc_charge  )
EXPORT_SYMBOL ( atm_pcr_goal  )
EXPORT_SYMBOL ( sonet_copy_stats  )
EXPORT_SYMBOL ( sonet_subtract_stats  )
void sonet_copy_stats ( struct k_sonet_stats from,
struct sonet_stats to 
)

Definition at line 87 of file atm_misc.c.

void sonet_subtract_stats ( struct k_sonet_stats from,
struct sonet_stats to 
)

Definition at line 95 of file atm_misc.c.