Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pep.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/socket.h>
#include <net/sock.h>
#include <net/tcp_states.h>
#include <asm/ioctls.h>
#include <linux/phonet.h>
#include <linux/module.h>
#include <net/phonet/phonet.h>
#include <net/phonet/pep.h>
#include <net/phonet/gprs.h>

Go to the source code of this file.

Macros

#define CREDITS_MAX   10
 
#define CREDITS_THR   7
 
#define pep_sb_size(s)   (((s) + 5) & ~3) /* 2-bytes head, 32-bits aligned */
 
#define PAD   0x00
 

Functions

int pep_writeable (struct sock *sk)
 
int pep_write (struct sock *sk, struct sk_buff *skb)
 
struct sk_buffpep_read (struct sock *sk)
 
 module_init (pep_register)
 
 module_exit (pep_unregister)
 
 MODULE_AUTHOR ("Remi Denis-Courmont, Nokia")
 
 MODULE_DESCRIPTION ("Phonet pipe protocol")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NET_PF_PROTO (PF_PHONET, PN_PROTO_PIPE)
 

Macro Definition Documentation

#define CREDITS_MAX   10

Definition at line 51 of file pep.c.

#define CREDITS_THR   7

Definition at line 52 of file pep.c.

#define PAD   0x00

Definition at line 138 of file pep.c.

#define pep_sb_size (   s)    (((s) + 5) & ~3) /* 2-bytes head, 32-bits aligned */

Definition at line 54 of file pep.c.

Function Documentation

MODULE_ALIAS_NET_PF_PROTO ( PF_PHONET  ,
PN_PROTO_PIPE   
)
MODULE_AUTHOR ( "Remi Denis-  Courmont,
Nokia"   
)
MODULE_DESCRIPTION ( "Phonet pipe protocol )
module_exit ( pep_unregister  )
module_init ( pep_register  )
MODULE_LICENSE ( "GPL"  )
struct sk_buff* pep_read ( struct sock sk)
read

Definition at line 1243 of file pep.c.

int pep_write ( struct sock sk,
struct sk_buff skb 
)

Definition at line 1212 of file pep.c.

int pep_writeable ( struct sock sk)

Definition at line 1205 of file pep.c.