Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tcp.h File Reference

Go to the source code of this file.

Data Structures

struct  rds_tcp_incoming
 
struct  rds_tcp_connection
 
struct  rds_tcp_statistics
 

Macros

#define RDS_TCP_PORT   16385
 
#define rds_tcp_stats_inc(member)   rds_stats_inc_which(rds_tcp_stats, member)
 

Functions

void rds_tcp_tune (struct socket *sock)
 
void rds_tcp_nonagle (struct socket *sock)
 
void rds_tcp_set_callbacks (struct socket *sock, struct rds_connection *conn)
 
void rds_tcp_restore_callbacks (struct socket *sock, struct rds_tcp_connection *tc)
 
u32 rds_tcp_snd_nxt (struct rds_tcp_connection *tc)
 
u32 rds_tcp_snd_una (struct rds_tcp_connection *tc)
 
u64 rds_tcp_map_seq (struct rds_tcp_connection *tc, u32 seq)
 
int rds_tcp_conn_connect (struct rds_connection *conn)
 
void rds_tcp_conn_shutdown (struct rds_connection *conn)
 
void rds_tcp_state_change (struct sock *sk)
 
int rds_tcp_listen_init (void)
 
void rds_tcp_listen_stop (void)
 
void rds_tcp_listen_data_ready (struct sock *sk, int bytes)
 
int rds_tcp_recv_init (void)
 
void rds_tcp_recv_exit (void)
 
void rds_tcp_data_ready (struct sock *sk, int bytes)
 
int rds_tcp_recv (struct rds_connection *conn)
 
void rds_tcp_inc_free (struct rds_incoming *inc)
 
int rds_tcp_inc_copy_to_user (struct rds_incoming *inc, struct iovec *iov, size_t size)
 
void rds_tcp_xmit_prepare (struct rds_connection *conn)
 
void rds_tcp_xmit_complete (struct rds_connection *conn)
 
int rds_tcp_xmit (struct rds_connection *conn, struct rds_message *rm, unsigned int hdr_off, unsigned int sg, unsigned int off)
 
void rds_tcp_write_space (struct sock *sk)
 
 DECLARE_PER_CPU (struct rds_tcp_statistics, rds_tcp_stats)
 
unsigned int rds_tcp_stats_info_copy (struct rds_info_iterator *iter, unsigned int avail)
 

Variables

struct rds_transport rds_tcp_transport
 

Macro Definition Documentation

#define RDS_TCP_PORT   16385

Definition at line 4 of file tcp.h.

#define rds_tcp_stats_inc (   member)    rds_stats_inc_which(rds_tcp_stats, member)

Definition at line 84 of file tcp.h.

Function Documentation

DECLARE_PER_CPU ( struct rds_tcp_statistics  ,
rds_tcp_stats   
)
int rds_tcp_conn_connect ( struct rds_connection conn)

Definition at line 75 of file tcp_connect.c.

void rds_tcp_conn_shutdown ( struct rds_connection conn)

Definition at line 130 of file tcp_connect.c.

void rds_tcp_data_ready ( struct sock sk,
int  bytes 
)

Definition at line 317 of file tcp_recv.c.

int rds_tcp_inc_copy_to_user ( struct rds_incoming inc,
struct iovec iov,
size_t  size 
)

Definition at line 62 of file tcp_recv.c.

void rds_tcp_inc_free ( struct rds_incoming inc)

Definition at line 50 of file tcp_recv.c.

void rds_tcp_listen_data_ready ( struct sock sk,
int  bytes 
)

Definition at line 111 of file tcp_listen.c.

int rds_tcp_listen_init ( void  )

Definition at line 138 of file tcp_listen.c.

void rds_tcp_listen_stop ( void  )

Definition at line 176 of file tcp_listen.c.

u64 rds_tcp_map_seq ( struct rds_tcp_connection tc,
u32  seq 
)
void rds_tcp_nonagle ( struct socket sock)

Definition at line 56 of file tcp.c.

int rds_tcp_recv ( struct rds_connection conn)

Definition at line 302 of file tcp_recv.c.

void rds_tcp_recv_exit ( void  )

Definition at line 353 of file tcp_recv.c.

int rds_tcp_recv_init ( void  )

Definition at line 343 of file tcp_recv.c.

void rds_tcp_restore_callbacks ( struct socket sock,
struct rds_tcp_connection tc 
)

Definition at line 94 of file tcp.c.

void rds_tcp_set_callbacks ( struct socket sock,
struct rds_connection conn 
)

Definition at line 121 of file tcp.c.

u32 rds_tcp_snd_nxt ( struct rds_tcp_connection tc)

Definition at line 84 of file tcp.c.

u32 rds_tcp_snd_una ( struct rds_tcp_connection tc)

Definition at line 89 of file tcp.c.

void rds_tcp_state_change ( struct sock sk)

Definition at line 40 of file tcp_connect.c.

unsigned int rds_tcp_stats_info_copy ( struct rds_info_iterator iter,
unsigned int  avail 
)

Definition at line 51 of file tcp_stats.c.

void rds_tcp_tune ( struct socket sock)

Definition at line 67 of file tcp.c.

void rds_tcp_write_space ( struct sock sk)

Definition at line 171 of file tcp_send.c.

int rds_tcp_xmit ( struct rds_connection conn,
struct rds_message rm,
unsigned int  hdr_off,
unsigned int  sg,
unsigned int  off 
)

Definition at line 80 of file tcp_send.c.

void rds_tcp_xmit_complete ( struct rds_connection conn)

Definition at line 58 of file tcp_send.c.

void rds_tcp_xmit_prepare ( struct rds_connection conn)

Definition at line 51 of file tcp_send.c.

Variable Documentation

struct rds_transport rds_tcp_transport

Definition at line 264 of file tcp.c.