Go to the source code of this file.
|
static segment_manager_t * | segment_manager_get (u32 index) |
|
static segment_manager_t * | segment_manager_get_if_valid (u32 index) |
|
static u32 | segment_manager_index (segment_manager_t *sm) |
|
segment_manager_t * | segment_manager_new () |
|
int | segment_manager_init (segment_manager_t *sm, u32 props_index, u32 seg_size) |
| Initializes segment manager based on options provided. More...
|
|
void | segment_manager_get_segment_info (u32 index, u8 **name, u32 *size) |
|
int | session_manager_add_first_segment (segment_manager_t *sm, u32 segment_size) |
|
int | session_manager_add_segment (segment_manager_t *sm) |
|
void | segment_manager_del_sessions (segment_manager_t *sm) |
| Initiate disconnects for all sessions 'owned' by a segment manager. More...
|
|
void | segment_manager_del (segment_manager_t *sm) |
| Removes segment manager. More...
|
|
void | segment_manager_init_del (segment_manager_t *sm) |
|
u8 | segment_manager_has_fifos (segment_manager_t *sm) |
|
int | segment_manager_alloc_session_fifos (segment_manager_t *sm, svm_fifo_t **server_rx_fifo, svm_fifo_t **server_tx_fifo, u32 *fifo_segment_index) |
|
void | segment_manager_dealloc_fifos (u32 svm_segment_index, svm_fifo_t *rx_fifo, svm_fifo_t *tx_fifo) |
|
unix_shared_memory_queue_t * | segment_manager_alloc_queue (segment_manager_t *sm, u32 queue_size) |
| Allocates shm queue in the first segment. More...
|
|
void | segment_manager_dealloc_queue (segment_manager_t *sm, unix_shared_memory_queue_t *q) |
| Frees shm queue allocated in the first segment. More...
|
|
void | segment_manager_app_detach (segment_manager_t *sm) |
|
segment_manager_properties_t * | segment_manager_properties_alloc (void) |
|
void | segment_manager_properties_free (segment_manager_properties_t *p) |
|
segment_manager_properties_t * | segment_manager_properties_get (u32 smp_index) |
|
u32 | segment_manager_properties_index (segment_manager_properties_t *p) |
|
#define SEGMENT_MANAGER_INVALID_APP_INDEX ((u32) ~0) |
Removes segment manager.
Since the fifos allocated in the segment keep backpointers to the sessions prior to removing the segment, we call session disconnect. This subsequently propagates into transport.
Definition at line 332 of file segment_manager.c.
Initiate disconnects for all sessions 'owned' by a segment manager.
Definition at line 278 of file segment_manager.c.
void segment_manager_get_segment_info |
( |
u32 |
index, |
|
|
u8 ** |
name, |
|
|
u32 * |
size |
|
) |
| |
Initializes segment manager based on options provided.
Returns error if svm segment allocation fails.
Definition at line 205 of file segment_manager.c.