Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
core.h File Reference
#include <linux/tipc.h>
#include <linux/tipc_config.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/timer.h>
#include <linux/string.h>
#include <asm/uaccess.h>
#include <linux/interrupt.h>
#include <linux/atomic.h>
#include <asm/hardirq.h>
#include <linux/netdevice.h>
#include <linux/in.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>

Go to the source code of this file.

Data Structures

struct  tipc_skb_cb
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define TIPC_MOD_VER   "2.0.0"
 
#define ULTRA_STRING_MAX_LEN   32768
 
#define TIPC_MAX_SUBSCRIPTIONS   65535
 
#define TIPC_MAX_PUBLICATIONS   65535
 
#define ELINKCONG   EAGAIN /* link congestion <=> resource unavailable */
 
#define BUF_HEADROOM   LL_MAX_HEADER
 
#define TIPC_SKB_CB(__skb)   ((struct tipc_skb_cb *)&((__skb)->cb[0]))
 

Typedefs

typedef void(* Handler )(unsigned long)
 

Functions

int tipc_snprintf (char *buf, int len, const char *fmt,...)
 
int tipc_core_start_net (unsigned long)
 
int tipc_handler_start (void)
 
void tipc_handler_stop (void)
 
int tipc_netlink_start (void)
 
void tipc_netlink_stop (void)
 
int tipc_socket_init (void)
 
void tipc_socket_stop (void)
 
u32 tipc_k_signal (Handler routine, unsigned long argument)
 
struct sk_bufftipc_buf_acquire (u32 size)
 

Variables

u32 tipc_own_addr __read_mostly
 

Macro Definition Documentation

#define BUF_HEADROOM   LL_MAX_HEADER

Definition at line 178 of file core.h.

#define ELINKCONG   EAGAIN /* link congestion <=> resource unavailable */

Definition at line 74 of file core.h.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 40 of file core.h.

#define TIPC_MAX_PUBLICATIONS   65535

Definition at line 65 of file core.h.

#define TIPC_MAX_SUBSCRIPTIONS   65535

Definition at line 64 of file core.h.

#define TIPC_MOD_VER   "2.0.0"

Definition at line 61 of file core.h.

#define TIPC_SKB_CB (   __skb)    ((struct tipc_skb_cb *)&((__skb)->cb[0]))

Definition at line 184 of file core.h.

#define ULTRA_STRING_MAX_LEN   32768

Definition at line 63 of file core.h.

Typedef Documentation

typedef void(* Handler)(unsigned long)

Definition at line 103 of file core.h.

Function Documentation

struct sk_buff* tipc_buf_acquire ( u32  size)
read

tipc_buf_acquire - creates a TIPC message buffer : message size (including TIPC header)

Returns a new buffer with data pointers set to the specified size.

NOTE: Headroom is reserved to allow prepending of a data link header. There may also be unrequested tailroom present at the buffer's end.

Definition at line 69 of file core.c.

int tipc_core_start_net ( unsigned long  addr)

start_net - start TIPC networking sub-systems

Definition at line 95 of file core.c.

int tipc_handler_start ( void  )

Definition at line 96 of file handler.c.

void tipc_handler_stop ( void  )

Definition at line 110 of file handler.c.

u32 tipc_k_signal ( Handler  routine,
unsigned long  argument 
)

Definition at line 55 of file handler.c.

int tipc_netlink_start ( void  )

Definition at line 86 of file netlink.c.

void tipc_netlink_stop ( void  )

Definition at line 101 of file netlink.c.

int tipc_snprintf ( char buf,
int  len,
const char fmt,
  ... 
)

tipc_snprintf - append formatted output to print buffer : pointer to print buffer : buffer length : formatted info to be printed

Definition at line 46 of file log.c.

int tipc_socket_init ( void  )

tipc_socket_init - initialize TIPC socket interface

Returns 0 on success, errno otherwise

Definition at line 1785 of file socket.c.

void tipc_socket_stop ( void  )

tipc_socket_stop - stop TIPC socket interface

Definition at line 1810 of file socket.c.

Variable Documentation

int tipc_random __read_mostly

Definition at line 80 of file core.h.