Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
socket.c File Reference
#include "core.h"
#include "port.h"
#include <linux/export.h>
#include <net/sock.h>

Go to the source code of this file.

Data Structures

struct  tipc_sock
 

Macros

#define SS_LISTENING   -1 /* socket is listening */
 
#define SS_READY   -2 /* socket is connectionless */
 
#define OVERLOAD_LIMIT_BASE   5000
 
#define CONN_TIMEOUT_DEFAULT   8000 /* default connect timeout = 8s */
 
#define tipc_sk(sk)   ((struct tipc_sock *)(sk))
 
#define tipc_sk_port(sk)   (tipc_sk(sk)->p)
 
#define tipc_rx_ready(sock)
 

Functions

int tipc_socket_init (void)
 
void tipc_socket_stop (void)
 

Macro Definition Documentation

#define CONN_TIMEOUT_DEFAULT   8000 /* default connect timeout = 8s */

Definition at line 47 of file socket.c.

#define OVERLOAD_LIMIT_BASE   5000

Definition at line 46 of file socket.c.

#define SS_LISTENING   -1 /* socket is listening */

Definition at line 43 of file socket.c.

#define SS_READY   -2 /* socket is connectionless */

Definition at line 44 of file socket.c.

#define tipc_rx_ready (   sock)
Value:
(!skb_queue_empty(&sock->sk->sk_receive_queue) || \
(sock->state == SS_DISCONNECTING))

Definition at line 59 of file socket.c.

#define tipc_sk (   sk)    ((struct tipc_sock *)(sk))

Definition at line 56 of file socket.c.

#define tipc_sk_port (   sk)    (tipc_sk(sk)->p)

Definition at line 57 of file socket.c.

Function Documentation

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.