Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
connection.c File Reference
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <net/inet_hashtables.h>
#include "rds.h"
#include "loop.h"

Go to the source code of this file.

Macros

#define RDS_CONNECTION_HASH_BITS   12
 
#define RDS_CONNECTION_HASH_ENTRIES   (1 << RDS_CONNECTION_HASH_BITS)
 
#define RDS_CONNECTION_HASH_MASK   (RDS_CONNECTION_HASH_ENTRIES - 1)
 
#define rds_conn_info_set(var, test, suffix)
 

Functions

struct rds_connectionrds_conn_create (__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp)
 
 EXPORT_SYMBOL_GPL (rds_conn_create)
 
struct rds_connectionrds_conn_create_outgoing (__be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp)
 
 EXPORT_SYMBOL_GPL (rds_conn_create_outgoing)
 
void rds_conn_shutdown (struct rds_connection *conn)
 
void rds_conn_destroy (struct rds_connection *conn)
 
 EXPORT_SYMBOL_GPL (rds_conn_destroy)
 
void rds_for_each_conn_info (struct socket *sock, unsigned int len, struct rds_info_iterator *iter, struct rds_info_lengths *lens, int(*visitor)(struct rds_connection *, void *), size_t item_len)
 
 EXPORT_SYMBOL_GPL (rds_for_each_conn_info)
 
int rds_conn_init (void)
 
void rds_conn_exit (void)
 
void rds_conn_drop (struct rds_connection *conn)
 
 EXPORT_SYMBOL_GPL (rds_conn_drop)
 
void rds_conn_connect_if_down (struct rds_connection *conn)
 
 EXPORT_SYMBOL_GPL (rds_conn_connect_if_down)
 
void __rds_conn_error (struct rds_connection *conn, const char *fmt,...)
 

Macro Definition Documentation

#define rds_conn_info_set (   var,
  test,
  suffix 
)
Value:
do { \
if (test) \
var |= RDS_INFO_CONNECTION_FLAG_##suffix; \
} while (0)

Definition at line 61 of file connection.c.

#define RDS_CONNECTION_HASH_BITS   12

Definition at line 42 of file connection.c.

#define RDS_CONNECTION_HASH_ENTRIES   (1 << RDS_CONNECTION_HASH_BITS)

Definition at line 43 of file connection.c.

#define RDS_CONNECTION_HASH_MASK   (RDS_CONNECTION_HASH_ENTRIES - 1)

Definition at line 44 of file connection.c.

Function Documentation

void __rds_conn_error ( struct rds_connection conn,
const char fmt,
  ... 
)

Definition at line 565 of file connection.c.

EXPORT_SYMBOL_GPL ( rds_conn_create  )
EXPORT_SYMBOL_GPL ( rds_conn_create_outgoing  )
EXPORT_SYMBOL_GPL ( rds_conn_destroy  )
EXPORT_SYMBOL_GPL ( rds_for_each_conn_info  )
EXPORT_SYMBOL_GPL ( rds_conn_drop  )
EXPORT_SYMBOL_GPL ( rds_conn_connect_if_down  )
void rds_conn_connect_if_down ( struct rds_connection conn)

Definition at line 553 of file connection.c.

struct rds_connection* rds_conn_create ( __be32  laddr,
__be32  faddr,
struct rds_transport trans,
gfp_t  gfp 
)
read

Definition at line 244 of file connection.c.

struct rds_connection* rds_conn_create_outgoing ( __be32  laddr,
__be32  faddr,
struct rds_transport trans,
gfp_t  gfp 
)
read

Definition at line 251 of file connection.c.

void rds_conn_destroy ( struct rds_connection conn)

Definition at line 321 of file connection.c.

void rds_conn_drop ( struct rds_connection conn)

Definition at line 542 of file connection.c.

void rds_conn_exit ( void  )

Definition at line 524 of file connection.c.

int rds_conn_init ( void  )

Definition at line 507 of file connection.c.

void rds_conn_shutdown ( struct rds_connection conn)

Definition at line 258 of file connection.c.

void rds_for_each_conn_info ( struct socket sock,
unsigned int  len,
struct rds_info_iterator iter,
struct rds_info_lengths lens,
int(*)(struct rds_connection *, void *)  visitor,
size_t  item_len 
)

Definition at line 434 of file connection.c.