corosync  2.4.2-dirty
Functions
totemiba.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <corosync/hdb.h>
#include <qb/qbloop.h>
#include <corosync/totem/totem.h>
Include dependency graph for totemiba.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int totemiba_initialize (qb_loop_t *qb_poll_handle, void **iba_handle, struct totem_config *totem_config, totemsrp_stats_t *stats, int interface_no, void *context, void(*deliver_fn)(void *context, const void *msg, unsigned int msg_len), void(*iface_change_fn)(void *context, const struct totem_ip_address *iface_address), void(*target_set_completed)(void *context))
 Create an instance. More...
 
void * totemiba_buffer_alloc (void)
 
void totemiba_buffer_release (void *ptr)
 
int totemiba_processor_count_set (void *iba_context, int processor_count)
 
int totemiba_token_send (void *iba_context, const void *msg, unsigned int msg_len)
 
int totemiba_mcast_flush_send (void *iba_context, const void *msg, unsigned int msg_len)
 
int totemiba_mcast_noflush_send (void *iba_context, const void *msg, unsigned int msg_len)
 
int totemiba_recv_flush (void *iba_context)
 
int totemiba_send_flush (void *iba_context)
 
int totemiba_iface_check (void *iba_context)
 
int totemiba_finalize (void *iba_context)
 
void totemiba_net_mtu_adjust (void *iba_context, struct totem_config *totem_config)
 
const char * totemiba_iface_print (void *iba_context)
 
int totemiba_iface_get (void *iba_context, struct totem_ip_address *addr)
 
int totemiba_token_target_set (void *iba_context, const struct totem_ip_address *token_target)
 
int totemiba_crypto_set (void *iba_context, const char *cipher_type, const char *hash_type)
 
int totemiba_recv_mcast_empty (void *iba_context)
 

Function Documentation

◆ totemiba_buffer_alloc()

void* totemiba_buffer_alloc ( void  )

Definition at line 1411 of file totemiba.c.

References MAX_MTU_SIZE.

◆ totemiba_buffer_release()

void totemiba_buffer_release ( void *  ptr)

Definition at line 1416 of file totemiba.c.

◆ totemiba_crypto_set()

int totemiba_crypto_set ( void *  iba_context,
const char *  cipher_type,
const char *  hash_type 
)

Definition at line 1323 of file totemiba.c.

◆ totemiba_finalize()

int totemiba_finalize ( void *  iba_context)

Definition at line 1336 of file totemiba.c.

◆ totemiba_iface_check()

int totemiba_iface_check ( void *  iba_context)

Definition at line 1575 of file totemiba.c.

◆ totemiba_iface_get()

int totemiba_iface_get ( void *  iba_context,
struct totem_ip_address addr 
)

Definition at line 1601 of file totemiba.c.

References totemiba_instance::my_id.

◆ totemiba_iface_print()

const char* totemiba_iface_print ( void *  iba_context)

Definition at line 1591 of file totemiba.c.

References totemiba_instance::my_id, and totemip_print().

◆ totemiba_initialize()

int totemiba_initialize ( qb_loop_t *  qb_poll_handle,
void **  iba_handle,
struct totem_config totem_config,
totemsrp_stats_t stats,
int  interface_no,
void *  context,
void(*)(void *context, const void *msg, unsigned int msg_len)  deliver_fn,
void(*)(void *context, const struct totem_ip_address *iface_address)  iface_change_fn,
void(*)(void *context)  target_set_completed 
)

Create an instance.

Definition at line 1350 of file totemiba.c.

◆ totemiba_mcast_flush_send()

int totemiba_mcast_flush_send ( void *  iba_context,
const void *  msg,
unsigned int  msg_len 
)

Definition at line 1493 of file totemiba.c.

◆ totemiba_mcast_noflush_send()

int totemiba_mcast_noflush_send ( void *  iba_context,
const void *  msg,
unsigned int  msg_len 
)

Definition at line 1534 of file totemiba.c.

◆ totemiba_net_mtu_adjust()

void totemiba_net_mtu_adjust ( void *  iba_context,
struct totem_config totem_config 
)

Definition at line 1585 of file totemiba.c.

◆ totemiba_processor_count_set()

int totemiba_processor_count_set ( void *  iba_context,
int  processor_count 
)

Definition at line 1421 of file totemiba.c.

◆ totemiba_recv_flush()

int totemiba_recv_flush ( void *  iba_context)

Definition at line 1433 of file totemiba.c.

◆ totemiba_recv_mcast_empty()

int totemiba_recv_mcast_empty ( void *  iba_context)

Definition at line 1632 of file totemiba.c.

◆ totemiba_send_flush()

int totemiba_send_flush ( void *  iba_context)

Definition at line 1443 of file totemiba.c.

◆ totemiba_token_send()

int totemiba_token_send ( void *  iba_context,
const void *  msg,
unsigned int  msg_len 
)

Definition at line 1453 of file totemiba.c.

◆ totemiba_token_target_set()

int totemiba_token_target_set ( void *  iba_context,
const struct totem_ip_address token_target 
)