PadicoTM

Documentation

« back to PM2 home.
Shm.h File Reference

Padico Shared memory common interface. More...

#include <sys/types.h>
#include <semaphore.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <Padico/Puk.h>
#include <Padico/Topology.h>
Include dependency graph for Shm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  padico_shm_short_lfqueue_s
 
struct  padico_shm_block_lfqueue_s
 
struct  padico_shm_blockcache_lfqueue_s
 
struct  padico_shm_large_lfqueue_s
 
struct  padico_shm_queue_lfqueue_s
 
struct  padico_shm_node_s
 A node descriptor. More...
 
struct  padico_shm_mbox_s
 a mailbox for a node More...
 
struct  padico_shm_seg_directory_s
 a segment containing only a directory More...
 
struct  padico_shm_seg_mbox_s
 the part of a segment dedicated to mbox & buffer s More...
 
struct  padico_shm_seg_full_s
 a full segment, including buffers More...
 
struct  padico_shm_short_header_s
 Generic shm header for short messages in the eager queue. More...
 
struct  padico_shm_s
 global state of the Shm segment More...
 

Macros

#define SHM_USE_POSIX
 
#define PADICO_LAST_MODULE_NAME   Shm
 
#define PADICO_SHM_NUMNODES   128
 
#define PADICO_SHM_NUMBLOCKS   4096
 Number of blocks allocated in shm buffer.
 
#define PADICO_SHM_BLOCKSIZE   (16 * 1024)
 size of data block in segment
 
#define PADICO_SHM_QUEUESIZE   64
 number of pending packets per queue (short & large)
 
#define PADICO_SHM_NUMQUEUES   512
 number of queues for large packets in segment
 
#define PADICO_SHM_BLOCK_CACHE_SIZE   16
 size of the block cache in each process; to avoid starvation, we need: block_cache_size * numnodes < numblocks / 2
 
#define PADICO_YIELD_ON_WAIT
 
#define PADICO_SHM_ALIGN   4096
 
#define PADICO_SHM_SHORT_PAYLOAD   (PADICO_SHM_BLOCKSIZE - sizeof(struct padico_shm_short_header_s))
 

Typedefs

typedef struct padico_shm_block_s * padico_shm_block_t
 offset of a block in the shared segment, stored in a pointer.
 
typedef struct padico_shm_queue_s * padico_shm_queue_t
 offset of a queue in the shared segment, stored in a pointer.
 
typedef padico_shm_block_t padico_shm_short_lfqueue_elem_t
 type for short messages queues- contains block offset
 
typedef padico_shm_block_t padico_shm_block_lfqueue_elem_t
 type for free blocks queue- contains block offset
 
typedef padico_shm_block_t padico_shm_blockcache_lfqueue_elem_t
 type for free blocks cache- contains block offset
 
typedef padico_shm_block_t padico_shm_large_lfqueue_elem_t
 type for large message queues- contains block offset
 
typedef padico_shm_queue_t padico_shm_queue_lfqueue_elem_t
 type for queues of queues- contains large queues offset
 

Functions

static int padico_shm_short_nblfq_isempty (puk_tagged_ptr_t u)
 tests whether cell is empty
 
 __attribute__ ((unused)) static inline uintptr_t padico_shm_short_nblfq_getseq(puk_tagged_ptr_t u)
 get the seq part of a tagged ptr
 
static uintptr_t padico_shm_short_nblfq_nextseq (uintptr_t s)
 
static uintptr_t padico_shm_short_nblfq_prevseq (uintptr_t s)
 
static unsigned padico_shm_short_nblfq_remap (unsigned i)
 
static puk_tagged_ptr_t padico_shm_short_nblfq_element (struct padico_shm_short_lfqueue_s *q, unsigned i)
 
static puk_tagged_ptr_t * padico_shm_short_nblfq_pelement (struct padico_shm_short_lfqueue_s *q, unsigned i)
 
static int padico_shm_short_nblfq_compare (unsigned i1, puk_tagged_ptr_t u1, unsigned i2, puk_tagged_ptr_t u2)
 tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise
 
static unsigned padico_shm_short_nblfq_chase_head (struct padico_shm_short_lfqueue_s *q)
 recompute the current head
 
static unsigned padico_shm_short_nblfq_chase_tail (struct padico_shm_short_lfqueue_s *q)
 recompute the current tail
 
 for (;;)
 
 if (padico_shm_short_nblfq_isempty(p))
 
 if (head==0)
 
 if (__sync_bool_compare_and_swap(padico_shm_short_nblfq_pelement(q, head), u0, v))
 
 puk_lfbackoff (r++)
 
 while (padico_shm_short_nblfq_compare(prev, p, tail, u))
 
 if (padico_shm_short_nblfq_isempty(u))
 
 if (__sync_bool_compare_and_swap(padico_shm_short_nblfq_pelement(q, tail), u, v))
 
static int padico_shm_block_nblfq_isempty (puk_tagged_ptr_t u)
 tests whether cell is empty
 
static uintptr_t padico_shm_block_nblfq_nextseq (uintptr_t s)
 
static uintptr_t padico_shm_block_nblfq_prevseq (uintptr_t s)
 
static unsigned padico_shm_block_nblfq_remap (unsigned i)
 
static puk_tagged_ptr_t padico_shm_block_nblfq_element (struct padico_shm_block_lfqueue_s *q, unsigned i)
 
static puk_tagged_ptr_t * padico_shm_block_nblfq_pelement (struct padico_shm_block_lfqueue_s *q, unsigned i)
 
static int padico_shm_block_nblfq_compare (unsigned i1, puk_tagged_ptr_t u1, unsigned i2, puk_tagged_ptr_t u2)
 tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise
 
static unsigned padico_shm_block_nblfq_chase_head (struct padico_shm_block_lfqueue_s *q)
 recompute the current head
 
static unsigned padico_shm_block_nblfq_chase_tail (struct padico_shm_block_lfqueue_s *q)
 recompute the current tail
 
 if (padico_shm_block_nblfq_isempty(p))
 
 if (__sync_bool_compare_and_swap(padico_shm_block_nblfq_pelement(q, head), u0, v))
 
 while (padico_shm_block_nblfq_compare(prev, p, tail, u))
 
 if (padico_shm_block_nblfq_isempty(u))
 
 if (__sync_bool_compare_and_swap(padico_shm_block_nblfq_pelement(q, tail), u, v))
 
static int padico_shm_blockcache_nblfq_isempty (puk_tagged_ptr_t u)
 tests whether cell is empty
 
static uintptr_t padico_shm_blockcache_nblfq_nextseq (uintptr_t s)
 
static uintptr_t padico_shm_blockcache_nblfq_prevseq (uintptr_t s)
 
static unsigned padico_shm_blockcache_nblfq_remap (unsigned i)
 
static puk_tagged_ptr_t padico_shm_blockcache_nblfq_element (struct padico_shm_blockcache_lfqueue_s *q, unsigned i)
 
static puk_tagged_ptr_t * padico_shm_blockcache_nblfq_pelement (struct padico_shm_blockcache_lfqueue_s *q, unsigned i)
 
static int padico_shm_blockcache_nblfq_compare (unsigned i1, puk_tagged_ptr_t u1, unsigned i2, puk_tagged_ptr_t u2)
 tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise
 
static unsigned padico_shm_blockcache_nblfq_chase_head (struct padico_shm_blockcache_lfqueue_s *q)
 recompute the current head
 
static unsigned padico_shm_blockcache_nblfq_chase_tail (struct padico_shm_blockcache_lfqueue_s *q)
 recompute the current tail
 
 if (padico_shm_blockcache_nblfq_isempty(p))
 
 if (__sync_bool_compare_and_swap(padico_shm_blockcache_nblfq_pelement(q, head), u0, v))
 
 while (padico_shm_blockcache_nblfq_compare(prev, p, tail, u))
 
 if (padico_shm_blockcache_nblfq_isempty(u))
 
 if (__sync_bool_compare_and_swap(padico_shm_blockcache_nblfq_pelement(q, tail), u, v))
 
static int padico_shm_large_nblfq_isempty (puk_tagged_ptr_t u)
 tests whether cell is empty
 
static uintptr_t padico_shm_large_nblfq_nextseq (uintptr_t s)
 
static uintptr_t padico_shm_large_nblfq_prevseq (uintptr_t s)
 
static unsigned padico_shm_large_nblfq_remap (unsigned i)
 
static puk_tagged_ptr_t padico_shm_large_nblfq_element (struct padico_shm_large_lfqueue_s *q, unsigned i)
 
static puk_tagged_ptr_t * padico_shm_large_nblfq_pelement (struct padico_shm_large_lfqueue_s *q, unsigned i)
 
static int padico_shm_large_nblfq_compare (unsigned i1, puk_tagged_ptr_t u1, unsigned i2, puk_tagged_ptr_t u2)
 tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise
 
static unsigned padico_shm_large_nblfq_chase_head (struct padico_shm_large_lfqueue_s *q)
 recompute the current head
 
static unsigned padico_shm_large_nblfq_chase_tail (struct padico_shm_large_lfqueue_s *q)
 recompute the current tail
 
 if (padico_shm_large_nblfq_isempty(p))
 
 if (__sync_bool_compare_and_swap(padico_shm_large_nblfq_pelement(q, head), u0, v))
 
 while (padico_shm_large_nblfq_compare(prev, p, tail, u))
 
 if (padico_shm_large_nblfq_isempty(u))
 
 if (__sync_bool_compare_and_swap(padico_shm_large_nblfq_pelement(q, tail), u, v))
 
static int padico_shm_queue_nblfq_isempty (puk_tagged_ptr_t u)
 tests whether cell is empty
 
static uintptr_t padico_shm_queue_nblfq_nextseq (uintptr_t s)
 
static uintptr_t padico_shm_queue_nblfq_prevseq (uintptr_t s)
 
static unsigned padico_shm_queue_nblfq_remap (unsigned i)
 
static puk_tagged_ptr_t padico_shm_queue_nblfq_element (struct padico_shm_queue_lfqueue_s *q, unsigned i)
 
static puk_tagged_ptr_t * padico_shm_queue_nblfq_pelement (struct padico_shm_queue_lfqueue_s *q, unsigned i)
 
static int padico_shm_queue_nblfq_compare (unsigned i1, puk_tagged_ptr_t u1, unsigned i2, puk_tagged_ptr_t u2)
 tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise
 
static unsigned padico_shm_queue_nblfq_chase_head (struct padico_shm_queue_lfqueue_s *q)
 recompute the current head
 
static unsigned padico_shm_queue_nblfq_chase_tail (struct padico_shm_queue_lfqueue_s *q)
 recompute the current tail
 
 if (padico_shm_queue_nblfq_isempty(p))
 
 if (__sync_bool_compare_and_swap(padico_shm_queue_nblfq_pelement(q, head), u0, v))
 
 while (padico_shm_queue_nblfq_compare(prev, p, tail, u))
 
 if (padico_shm_queue_nblfq_isempty(u))
 
 if (__sync_bool_compare_and_swap(padico_shm_queue_nblfq_pelement(q, tail), u, v))
 
struct padico_shm_mbox_s __attribute__ ((aligned(4096)))
 
struct padico_shm_s * padico_shm_init (const char *name, ssize_t payload)
 create a shm segment; payload is the size allocated in addition to the directory.
 
void padico_shm_close (struct padico_shm_s *shm)
 
struct padico_shm_node_s * padico_shm_directory_node_lookup (const struct padico_shm_s *shm, padico_topo_node_t node)
 
void padico_shm_directory_dump (struct padico_shm_s *shm)
 dump content of shm directory, for debug
 
void padico_shm_large_send (struct padico_shm_s *shm, const void *bytes, size_t size, struct padico_shm_node_s *dest)
 
padico_shm_queue_t padico_shm_large_recv_post (struct padico_shm_s *shm, int from)
 
int padico_shm_large_recv_poll (struct padico_shm_s *shm, void *bytes, size_t size, padico_shm_queue_t queue)
 
void padico_shm_large_recv (struct padico_shm_s *shm, void *bytes, size_t size, int from)
 
padico_shm_block_t padico_shm_block_alloc (struct padico_shm_s *shm)
 allocate a memory block in shm buffer
 
static void * padico_shm_block_get_ptr (struct padico_shm_s *shm, padico_shm_block_t block)
 get the pointer to a block given its block number
 
static void padico_shm_block_assert (struct padico_shm_s *shm, padico_shm_block_t block)
 assert given offset is a valid block
 
static padico_shm_block_t padico_shm_block_from_ptr (struct padico_shm_s *shm, void *ptr)
 get the block given its pointer
 
static padico_shm_block_t padico_shm_block_from_num (struct padico_shm_s *shm, int block_num)
 
static void padico_shm_block_free (struct padico_shm_s *shm, padico_shm_block_t block)
 return a free block back to the free blocks pool
 
static padico_shm_queue_t padico_shm_queue_from_num (struct padico_shm_s *shm, int queue_num)
 
static struct padico_shm_large_lfqueue_s * padico_shm_queue_get_lfqueue (struct padico_shm_s *shm, padico_shm_queue_t queue)
 
static int padico_shm_short_send_commit (struct padico_shm_s *shm, struct padico_shm_node_s *dest, padico_shm_block_t block, size_t size, int shared)
 
static void * padico_shm_short_get_ptr (struct padico_shm_s *shm, padico_shm_block_t block)
 
static padico_shm_block_t padico_shm_block_from_short_ptr (struct padico_shm_s *shm, void *short_ptr)
 
static padico_shm_block_t padico_shm_short_recv_poll (struct padico_shm_s *shm, struct padico_shm_node_s *from)
 

Variables

static const struct puk_mod_dep_cell_s puk_mod_dep_Shm = { .mod_name = "Shm", .link = & puk_mod_dep_0 }
 
padico_shm_short_lfqueue_elem_t e { return padico_shm_short_lfqueue_enqueue_ext(queue, e, 0)
 
padico_shm_short_lfqueue_elem_t int single {
 
int r = 0
 
retry __pad0__
 
unsigned head = q->_head
 
unsigned prev = (head + ( 64 ) - 1) % ( 64 )
 
puk_tagged_ptr_t p = padico_shm_short_nblfq_element(q, prev)
 
puk_tagged_ptr_t u = padico_shm_short_nblfq_element(q, head)
 
const uintptr_t sp = puk_tagged_ptr_get_tag(p)
 
uintptr_t s = sp
 
const puk_tagged_ptr_t v = puk_tagged_ptr_build(e, s)
 
const puk_tagged_ptr_t u0 = puk_tagged_ptr_build(NULL, s)
 
 else {
 
goto retry
 
 return
 
retry __pad1__
 
unsigned tail = q->_tail
 
const uintptr_t su = puk_tagged_ptr_get_tag(u)
 
return NULL
 
retry __pad2__
 
retry __pad3__
 
retry __pad4__
 
retry __pad5__
 
retry __pad6__
 
retry __pad7__
 
retry __pad8__
 
retry __pad9__
 
struct padico_shm_short_lfqueue_s shared_queue
 shared queue for short messages sent eagerly; contains block index
 
struct padico_shm_short_lfqueue_s short_queues [128]
 queues for short messages sent eagerly; contains block index
 
struct padico_shm_blockcache_lfqueue_s block_cache
 free blocks cache
 
struct { 
 
   volatile padico_shm_queue_t   pipeline 
 allocated queue for transfer More...
 
} large [128] 
 large messages mbox; unlocked acces, valid when pipeline != -1
 
struct padico_shm_seg_directory_s __attribute__
 

Detailed Description

Padico Shared memory common interface.

Definition in file Shm.h.

Macro Definition Documentation

◆ PADICO_LAST_MODULE_NAME

#define PADICO_LAST_MODULE_NAME   Shm

Definition at line 55 of file Shm.h.

◆ PADICO_SHM_ALIGN

#define PADICO_SHM_ALIGN   4096

Definition at line 75 of file Shm.h.

◆ PADICO_SHM_BLOCK_CACHE_SIZE

#define PADICO_SHM_BLOCK_CACHE_SIZE   16

size of the block cache in each process; to avoid starvation, we need: block_cache_size * numnodes < numblocks / 2

Definition at line 72 of file Shm.h.

◆ PADICO_SHM_BLOCKSIZE

#define PADICO_SHM_BLOCKSIZE   (16 * 1024)

size of data block in segment

Definition at line 65 of file Shm.h.

◆ PADICO_SHM_NUMBLOCKS

#define PADICO_SHM_NUMBLOCKS   4096

Number of blocks allocated in shm buffer.

Note
to prevent deadlocks, should be at least num_nodes+1

Definition at line 63 of file Shm.h.

◆ PADICO_SHM_NUMNODES

#define PADICO_SHM_NUMNODES   128

Definition at line 59 of file Shm.h.

◆ PADICO_SHM_NUMQUEUES

#define PADICO_SHM_NUMQUEUES   512

number of queues for large packets in segment

Definition at line 69 of file Shm.h.

◆ PADICO_SHM_QUEUESIZE

#define PADICO_SHM_QUEUESIZE   64

number of pending packets per queue (short & large)

Definition at line 67 of file Shm.h.

◆ PADICO_SHM_SHORT_PAYLOAD

#define PADICO_SHM_SHORT_PAYLOAD   (PADICO_SHM_BLOCKSIZE - sizeof(struct padico_shm_short_header_s))

Definition at line 168 of file Shm.h.

◆ PADICO_YIELD_ON_WAIT

#define PADICO_YIELD_ON_WAIT

Definition at line 73 of file Shm.h.

◆ SHM_USE_POSIX

#define SHM_USE_POSIX

Definition at line 36 of file Shm.h.

Typedef Documentation

◆ padico_shm_block_lfqueue_elem_t

type for free blocks queue- contains block offset

Definition at line 90 of file Shm.h.

◆ padico_shm_block_t

offset of a block in the shared segment, stored in a pointer.

struct padico_shm_block_s does not exist; it's here only for typing

Definition at line 80 of file Shm.h.

◆ padico_shm_blockcache_lfqueue_elem_t

type for free blocks cache- contains block offset

Definition at line 92 of file Shm.h.

◆ padico_shm_large_lfqueue_elem_t

type for large message queues- contains block offset

Definition at line 94 of file Shm.h.

◆ padico_shm_queue_lfqueue_elem_t

type for queues of queues- contains large queues offset

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_t

offset of a queue in the shared segment, stored in a pointer.

struct padico_shm_queue_s does not exist; it's here only for typing

Definition at line 85 of file Shm.h.

◆ padico_shm_short_lfqueue_elem_t

type for short messages queues- contains block offset

Definition at line 88 of file Shm.h.

Function Documentation

◆ __attribute__()

struct padico_shm_mbox_s __attribute__ ( (aligned(4096))  )

◆ for()

for ( ;;  )

Definition at line 88 of file Shm.h.

◆ if() [1/21]

Definition at line 90 of file Shm.h.

◆ if() [2/21]

Definition at line 90 of file Shm.h.

◆ if() [3/21]

◆ if() [4/21]

◆ if() [5/21]

Definition at line 94 of file Shm.h.

◆ if() [6/21]

Definition at line 94 of file Shm.h.

◆ if() [7/21]

Definition at line 97 of file Shm.h.

◆ if() [8/21]

Definition at line 97 of file Shm.h.

◆ if() [9/21]

Definition at line 88 of file Shm.h.

◆ if() [10/21]

Definition at line 88 of file Shm.h.

◆ if() [11/21]

if ( head  = = 0)

Definition at line 88 of file Shm.h.

◆ if() [12/21]

Definition at line 90 of file Shm.h.

◆ if() [13/21]

Definition at line 90 of file Shm.h.

◆ if() [14/21]

Definition at line 92 of file Shm.h.

◆ if() [15/21]

Definition at line 92 of file Shm.h.

◆ if() [16/21]

Definition at line 94 of file Shm.h.

◆ if() [17/21]

Definition at line 94 of file Shm.h.

◆ if() [18/21]

Definition at line 97 of file Shm.h.

◆ if() [19/21]

Definition at line 97 of file Shm.h.

◆ if() [20/21]

Definition at line 88 of file Shm.h.

◆ if() [21/21]

Definition at line 88 of file Shm.h.

◆ padico_shm_block_alloc()

◆ padico_shm_block_assert()

◆ padico_shm_block_free()

◆ padico_shm_block_from_num()

◆ padico_shm_block_from_ptr()

static padico_shm_block_t padico_shm_block_from_ptr ( struct padico_shm_s *  shm,
void *  ptr 
)
inlinestatic

get the block given its pointer

Definition at line 232 of file Shm.h.

References assert(), block, done, NULL, padico_shm_block_assert(), ptr, padico_shm_s::seg_mbox, and shm.

Referenced by padico_shm_block_from_short_ptr().

◆ padico_shm_block_from_short_ptr()

static padico_shm_block_t padico_shm_block_from_short_ptr ( struct padico_shm_s *  shm,
void *  short_ptr 
)
inlinestatic

Definition at line 331 of file Shm.h.

References assert(), block, done, NULL, padico_shm_block_assert(), padico_shm_block_from_ptr(), and shm.

◆ padico_shm_block_get_ptr()

static void * padico_shm_block_get_ptr ( struct padico_shm_s *  shm,
padico_shm_block_t  block 
)
inlinestatic

◆ padico_shm_block_nblfq_chase_head()

static unsigned padico_shm_block_nblfq_chase_head ( struct padico_shm_block_lfqueue_s *  q)
inlinestatic

recompute the current head

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_chase_tail()

static unsigned padico_shm_block_nblfq_chase_tail ( struct padico_shm_block_lfqueue_s *  q)
inlinestatic

recompute the current tail

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_compare()

static int padico_shm_block_nblfq_compare ( unsigned  i1,
puk_tagged_ptr_t  u1,
unsigned  i2,
puk_tagged_ptr_t  u2 
)
inlinestatic

tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_element()

static puk_tagged_ptr_t padico_shm_block_nblfq_element ( struct padico_shm_block_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_isempty()

static int padico_shm_block_nblfq_isempty ( puk_tagged_ptr_t  u)
inlinestatic

tests whether cell is empty

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_nextseq()

static uintptr_t padico_shm_block_nblfq_nextseq ( uintptr_t  s)
inlinestatic

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_pelement()

static puk_tagged_ptr_t * padico_shm_block_nblfq_pelement ( struct padico_shm_block_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_prevseq()

static uintptr_t padico_shm_block_nblfq_prevseq ( uintptr_t  s)
inlinestatic

Definition at line 90 of file Shm.h.

◆ padico_shm_block_nblfq_remap()

static unsigned padico_shm_block_nblfq_remap ( unsigned  i)
inlinestatic

Definition at line 90 of file Shm.h.

◆ padico_shm_blockcache_nblfq_chase_head()

static unsigned padico_shm_blockcache_nblfq_chase_head ( struct padico_shm_blockcache_lfqueue_s *  q)
inlinestatic

recompute the current head

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_chase_tail()

static unsigned padico_shm_blockcache_nblfq_chase_tail ( struct padico_shm_blockcache_lfqueue_s *  q)
inlinestatic

recompute the current tail

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_compare()

static int padico_shm_blockcache_nblfq_compare ( unsigned  i1,
puk_tagged_ptr_t  u1,
unsigned  i2,
puk_tagged_ptr_t  u2 
)
inlinestatic

tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_element()

static puk_tagged_ptr_t padico_shm_blockcache_nblfq_element ( struct padico_shm_blockcache_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_isempty()

static int padico_shm_blockcache_nblfq_isempty ( puk_tagged_ptr_t  u)
inlinestatic

tests whether cell is empty

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_nextseq()

static uintptr_t padico_shm_blockcache_nblfq_nextseq ( uintptr_t  s)
inlinestatic

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_pelement()

static puk_tagged_ptr_t * padico_shm_blockcache_nblfq_pelement ( struct padico_shm_blockcache_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_prevseq()

static uintptr_t padico_shm_blockcache_nblfq_prevseq ( uintptr_t  s)
inlinestatic

Definition at line 92 of file Shm.h.

◆ padico_shm_blockcache_nblfq_remap()

static unsigned padico_shm_blockcache_nblfq_remap ( unsigned  i)
inlinestatic

Definition at line 92 of file Shm.h.

◆ padico_shm_close()

◆ padico_shm_directory_dump()

void padico_shm_directory_dump ( struct padico_shm_s *  shm)
extern

◆ padico_shm_directory_node_lookup()

◆ padico_shm_init()

◆ padico_shm_large_nblfq_chase_head()

static unsigned padico_shm_large_nblfq_chase_head ( struct padico_shm_large_lfqueue_s *  q)
inlinestatic

recompute the current head

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_chase_tail()

static unsigned padico_shm_large_nblfq_chase_tail ( struct padico_shm_large_lfqueue_s *  q)
inlinestatic

recompute the current tail

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_compare()

static int padico_shm_large_nblfq_compare ( unsigned  i1,
puk_tagged_ptr_t  u1,
unsigned  i2,
puk_tagged_ptr_t  u2 
)
inlinestatic

tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_element()

static puk_tagged_ptr_t padico_shm_large_nblfq_element ( struct padico_shm_large_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_isempty()

static int padico_shm_large_nblfq_isempty ( puk_tagged_ptr_t  u)
inlinestatic

tests whether cell is empty

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_nextseq()

static uintptr_t padico_shm_large_nblfq_nextseq ( uintptr_t  s)
inlinestatic

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_pelement()

static puk_tagged_ptr_t * padico_shm_large_nblfq_pelement ( struct padico_shm_large_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_prevseq()

static uintptr_t padico_shm_large_nblfq_prevseq ( uintptr_t  s)
inlinestatic

Definition at line 94 of file Shm.h.

◆ padico_shm_large_nblfq_remap()

static unsigned padico_shm_large_nblfq_remap ( unsigned  i)
inlinestatic

Definition at line 94 of file Shm.h.

◆ padico_shm_large_recv()

void padico_shm_large_recv ( struct padico_shm_s *  shm,
void *  bytes,
size_t  size,
int  from 
)
extern

Definition at line 515 of file shm-sysdep.c.

References padico_shm_large_recv_poll(), padico_shm_large_recv_post(), rc, shm, and size.

Referenced by psp_shm_pump().

◆ padico_shm_large_recv_poll()

◆ padico_shm_large_recv_post()

◆ padico_shm_large_send()

◆ padico_shm_queue_from_num()

static padico_shm_queue_t padico_shm_queue_from_num ( struct padico_shm_s *  shm,
int  queue_num 
)
inlinestatic

◆ padico_shm_queue_get_lfqueue()

static struct padico_shm_large_lfqueue_s * padico_shm_queue_get_lfqueue ( struct padico_shm_s *  shm,
padico_shm_queue_t  queue 
)
inlinestatic

Definition at line 280 of file Shm.h.

References assert(), done, padico_shm_s::seg_mbox, and shm.

Referenced by padico_shm_large_recv_poll(), and padico_shm_large_send().

◆ padico_shm_queue_nblfq_chase_head()

static unsigned padico_shm_queue_nblfq_chase_head ( struct padico_shm_queue_lfqueue_s *  q)
inlinestatic

recompute the current head

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_chase_tail()

static unsigned padico_shm_queue_nblfq_chase_tail ( struct padico_shm_queue_lfqueue_s *  q)
inlinestatic

recompute the current tail

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_compare()

static int padico_shm_queue_nblfq_compare ( unsigned  i1,
puk_tagged_ptr_t  u1,
unsigned  i2,
puk_tagged_ptr_t  u2 
)
inlinestatic

tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_element()

static puk_tagged_ptr_t padico_shm_queue_nblfq_element ( struct padico_shm_queue_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_isempty()

static int padico_shm_queue_nblfq_isempty ( puk_tagged_ptr_t  u)
inlinestatic

tests whether cell is empty

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_nextseq()

static uintptr_t padico_shm_queue_nblfq_nextseq ( uintptr_t  s)
inlinestatic

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_pelement()

static puk_tagged_ptr_t * padico_shm_queue_nblfq_pelement ( struct padico_shm_queue_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_prevseq()

static uintptr_t padico_shm_queue_nblfq_prevseq ( uintptr_t  s)
inlinestatic

Definition at line 97 of file Shm.h.

◆ padico_shm_queue_nblfq_remap()

static unsigned padico_shm_queue_nblfq_remap ( unsigned  i)
inlinestatic

Definition at line 97 of file Shm.h.

◆ padico_shm_short_get_ptr()

static void * padico_shm_short_get_ptr ( struct padico_shm_s *  shm,
padico_shm_block_t  block 
)
inlinestatic

Definition at line 324 of file Shm.h.

References assert(), block, NULL, padico_shm_block_assert(), padico_shm_block_get_ptr(), ptr, and shm.

◆ padico_shm_short_nblfq_chase_head()

static unsigned padico_shm_short_nblfq_chase_head ( struct padico_shm_short_lfqueue_s *  q)
inlinestatic

recompute the current head

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_chase_tail()

static unsigned padico_shm_short_nblfq_chase_tail ( struct padico_shm_short_lfqueue_s *  q)
inlinestatic

recompute the current tail

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_compare()

static int padico_shm_short_nblfq_compare ( unsigned  i1,
puk_tagged_ptr_t  u1,
unsigned  i2,
puk_tagged_ptr_t  u2 
)
inlinestatic

tests whether seq(u1) < seq(u2); returns 1 if yes; returns 0 otherwise

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_element()

static puk_tagged_ptr_t padico_shm_short_nblfq_element ( struct padico_shm_short_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_isempty()

static int padico_shm_short_nblfq_isempty ( puk_tagged_ptr_t  u)
inlinestatic

tests whether cell is empty

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_nextseq()

static uintptr_t padico_shm_short_nblfq_nextseq ( uintptr_t  s)
inlinestatic

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_pelement()

static puk_tagged_ptr_t * padico_shm_short_nblfq_pelement ( struct padico_shm_short_lfqueue_s *  q,
unsigned  i 
)
inlinestatic

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_prevseq()

static uintptr_t padico_shm_short_nblfq_prevseq ( uintptr_t  s)
inlinestatic

Definition at line 88 of file Shm.h.

◆ padico_shm_short_nblfq_remap()

static unsigned padico_shm_short_nblfq_remap ( unsigned  i)
inlinestatic

Definition at line 88 of file Shm.h.

◆ padico_shm_short_recv_poll()

◆ padico_shm_short_send_commit()

◆ puk_lfbackoff()

puk_lfbackoff ( r++  )

◆ while() [1/5]

Definition at line 90 of file Shm.h.

◆ while() [2/5]

Definition at line 92 of file Shm.h.

◆ while() [3/5]

Definition at line 94 of file Shm.h.

◆ while() [4/5]

Definition at line 97 of file Shm.h.

◆ while() [5/5]

Definition at line 88 of file Shm.h.

Variable Documentation

◆ __attribute__

◆ __pad0__

retry __pad0__

Definition at line 88 of file Shm.h.

◆ __pad1__

retry __pad1__

Definition at line 88 of file Shm.h.

◆ __pad2__

retry __pad2__

Definition at line 90 of file Shm.h.

◆ __pad3__

retry __pad3__

Definition at line 90 of file Shm.h.

◆ __pad4__

retry __pad4__

Definition at line 92 of file Shm.h.

◆ __pad5__

retry __pad5__

Definition at line 92 of file Shm.h.

◆ __pad6__

retry __pad6__

Definition at line 94 of file Shm.h.

◆ __pad7__

retry __pad7__

Definition at line 94 of file Shm.h.

◆ __pad8__

retry __pad8__

Definition at line 97 of file Shm.h.

◆ __pad9__

retry __pad9__

Definition at line 97 of file Shm.h.

◆ block_cache

free blocks cache

Definition at line 3 of file Shm.h.

◆ e

◆ else

else {

Definition at line 88 of file Shm.h.

◆ head

unsigned head = q->_head

Definition at line 88 of file Shm.h.

◆ [struct]

struct { ... } large[ 128 ]

large messages mbox; unlocked acces, valid when pipeline != -1

◆ NULL

return NULL
Examples
Tests/VIO/vio-test.c.

Definition at line 88 of file Shm.h.

Referenced by __attribute__(), __attribute__(), answer_cmd(), assembly_request_end_handler(), begin_comm_thread(), bench_common_init(), bench_cond(), bench_cond(), bench_control_init(), bench_control_packet_handler(), bench_control_wait(), bench_lfqueue_init(), bench_minidriver_connect(), bench_minidriver_init(), bench_newmad_init(), bench_pf_init(), bench_pf_server(), bench_psp_handler(), bench_psp_handler(), bench_psp_handler(), bench_psp_init(), bench_psp_wait(), bench_psp_wait(), bench_psp_wait(), bench_shmspin_init(), bench_soap_init(), bench_soap_make_server(), bench_soap_server_worker(), bench_socket_init(), bench_sysio_init(), bench_udp_init(), bootlib_main_thread(), bsio_signal(), bsio_stop(), bz2pf_destroy(), cascade_delete_end_handler(), client_loop(), client_loop(), comm_thread(), console_loop(), control_bootstrap_event_listener(), control_bootstrap_finalize(), control_bootstrap_init(), control_bootstrap_pmi2_component_init(), control_bootstrap_pmi2_finalize(), control_bootstrap_pmi2_init(), control_bootstrap_pmi2_instance_connect(), control_bootstrap_pmi2_instance_init(), control_router_broadcast(), control_router_disappeared(), control_router_event_listener(), control_router_init(), control_router_table_print(), control_simpleselector_finalize(), control_ssh2_init(), control_sysio_init(), control_twostep_connector_new_handler(), control_twostep_new_node(), control_twostep_select_controler(), control_twostep_selector_event_listener(), control_twostep_selector_init(), copy_rc(), css_event_listener(), defgroup_end_handler(), disappear_end_handler(), f(), f(), fdsets_from_vobs_secondary(), g5k_compute_networks(), g5k_connect(), g5k_connect_wait_ssh(), g5k_create_network(), get_href_by_title(), getenv_start_handler(), group_barrier_stage1_end_handler(), group_barrier_stage2_end_handler(), group_host_table_destructor(), gw_status_new(), hello_soap_init(), hello_soap_start(), hello_soap_worker(), HelloSOAP__SayHello(), jxta_rdvclient_listener_run(), jxta_rdvserver_run(), kill_end_handler(), killgroup_end_handler(), legacy_binary_finalize(), load_end_handler(), lz4pf_destroy(), lzo1x_decompress(), lzo1x_decompress_safe(), lzo_adler32(), lzopf_decode(), lzopf_destroy(), main(), main(), make_client(), na_bindings_serialize(), na_control_event_listener(), na_control_notify(), na_control_rc_handler(), na_control_request_handler(), na_network_getentity_byaddr(), na_sysio_scavenger(), na_sysio_thread(), na_sysio_unlock(), na_unit_multi_ctor(), na_unit_multi_dtor(), na_unit_multi_load(), na_unit_multi_proxy_ctor(), na_unit_multi_proxy_dtor(), na_unit_multi_proxy_load(), na_unit_multi_proxy_start(), na_unit_multi_proxy_unload(), na_unit_multi_start(), na_unit_multi_unload(), nametoipv4(), ns_basic_assembly(), ns_basic_config_init(), ns_basic_group_end_handler(), ns_basic_group_start_handler(), ns_basic_host_assembly(), ns_basic_target_start_handler(), ns_besteffort_init(), ns_besteffort_selector_2networks(), ns_besteffort_selector_dijkstra(), ns_besteffort_selector_host(), ns_inet_default_selector_host(), ns_netselector_init(), ns_node_in_entity(), ns_selector_insert(), ns_selector_load_profile(), ns_selector_lookup(), nsbe_binding_select(), nsbe_dijkstra_getmin(), nsbe_dijkstra_init(), nsbe_dijkstra_vertex_add(), nsdb_create_host(), nsdb_create_node(), nsdb_create_rule(), padico_addrdb_dynget(), padico_addrdb_free_entry(), padico_addrdb_get(), padico_addrdb_init(), padico_addrdb_insert(), padico_addrdb_new_entry(), padico_addrdb_publish(), padico_addrdb_publish_handler(), padico_bootlib_init(), padico_bootstrap_indirect(), padico_connector_connect_handler(), padico_connector_new_handler(), padico_console_init(), padico_console_run(), padico_control_connector_connect(), padico_control_connector_new(), padico_control_delete_node(), padico_control_deliver_message(), padico_control_finalize(), padico_control_gen_init_events(), padico_control_get_event_channel(), padico_control_getnetwork(), padico_control_group_init(), padico_control_init(), padico_control_msg_destroy(), padico_control_msg_get_bytes(), padico_control_msg_get_iovec(), padico_control_msg_get_iovec_size(), padico_control_msg_get_size(), padico_control_msg_new(), padico_control_send(), padico_control_send_ext(), padico_control_send_msg(), padico_gatekeeper__CreateGroup(), padico_gatekeeper__GetNodeInfo(), padico_gatekeeper__LoadModule(), padico_gatekeeper__RunModule(), padico_gatekeeper__StartJob(), padico_gatekeeper__UnloadModule(), padico_group_barrier(), padico_group_node_add(), padico_group_topology(), padico_group_wait_all(), padico_ibv_connect_start_handler(), padico_ibv_connection_init(), padico_ibv_connector(), padico_ibv_discover(), padico_ibv_do_rdma_send(), padico_ibv_init(), padico_ibv_lz_recv(), padico_ibv_sp_recv(), padico_ibv_sp_send(), padico_ibv_wait_any(), padico_io_register(), padico_launch_execve(), padico_lib_init(), padico_libfabric_finalize(), padico_mem_monitor_init(), padico_mem_monitor_worker(), padico_module_run(), padico_na_sysio_init(), padico_na_sysio_stop(), padico_na_topology_serialize(), padico_ns_host_selector(), padico_ns_selector_register(), padico_ns_selector_unregister(), padico_ns_serial_selector(), padico_nsbe_new_rule(), padico_nsbe_rule_resolve(), padico_pmi2_init(), padico_pmi2_kvs_lookup(), padico_pmi2_kvs_lookup_single(), padico_pmi2_kvs_publish(), padico_pmix_abort(), padico_pmix_barrier(), padico_pmix_finalize(), padico_pmix_init(), padico_pmix_kvs_fence(), padico_pmix_kvs_lookup(), padico_pmix_kvs_publish(), padico_portals4_finalize(), padico_portals4_init(), padico_prof_monitor_init(), padico_prof_monitor_worker(), padico_psm2_discover(), padico_psm_discover(), padico_psp_connect(), padico_psp_directory_init(), padico_psp_listen(), padico_psp_slot_lookup(), padico_shm_block_alloc(), padico_shm_block_assert(), padico_shm_block_from_num(), padico_shm_block_from_ptr(), padico_shm_block_from_short_ptr(), padico_shm_block_get_ptr(), padico_shm_directory_node_lookup(), padico_shm_directory_register_self(), padico_shm_directory_unregister_self(), padico_shm_init(), padico_shm_large_recv_poll(), padico_shm_large_recv_post(), padico_shm_large_send(), padico_shm_seg_init(), padico_shm_short_get_ptr(), padico_shm_short_recv_poll(), padico_sysio_bound_inet_socket(), padico_tasklet_destroy(), padico_tasklet_new(), padico_tasklet_schedule(), padico_tasklet_unsubscribe(), padico_tasklet_worker(), padico_taskmanager_finalize(), padico_taskmanager_init(), padico_timing_profile_point_label(), padico_tm_bgthread_pool_collect(), padico_tm_bgthread_pool_create(), padico_tm_bgthread_start(), padico_tm_exit(), padico_tm_init(), padico_tm_invoke_later_named(), padico_tm_mod_action(), padico_tm_mod_action_args(), padico_tm_mod_process(), padico_tm_req_new(), padico_tm_req_wait(), padico_tm_task_engine_init(), padico_tm_task_engine_run(), padico_tm_task_enqueue_from(), padico_tm_tasks_process(), padico_topo_binding_add_gw_addr(), padico_topo_binding_get_perf(), padico_topo_binding_gethwaddr(), padico_topo_getnodebyname(), padico_topo_host_getaddr(), padico_topo_host_getaddr2(), padico_topo_host_getbyin6addr(), padico_topo_host_getbyinaddr(), padico_topo_host_getnetworks(), padico_topo_host_getnode(), padico_topo_host_getproperty(), padico_topo_host_policy(), padico_topo_host_resolvebyname(), padico_topo_hwaddr_add(), padico_topo_network_create(), padico_topo_network_get_perf(), padico_topo_network_getbyid(), padico_topo_network_gethostbyaddr(), padico_topo_network_set_perf(), padico_topo_node_disconnect(), padico_topo_node_getaddress(), padico_topo_print_main(), padico_topo_print_open_file(), padico_vaddr_unmarshall(), padico_vio_accept(), padico_vio_close(), padico_vio_component(), padico_vio_dump_vfd(), padico_vio_fstat(), padico_vio_fsync(), padico_vio_ftruncate(), padico_vio_init(), padico_vio_inotify_init(), padico_vio_listen(), padico_vio_lseek(), padico_vio_mmap(), padico_vio_open(), padico_vio_pipe(), padico_vio_poll(), padico_vio_recvmsg(), padico_vio_select(), padico_vio_sendmsg(), padico_vio_socket(), padico_vlink_packet_init(), padico_vlink_resolver_init(), padico_vlink_selector_init(), padico_vnode_component_acceptor(), padico_vnode_instantiate_entry(), padico_vnode_read_clear(), padico_vnode_read_post(), padico_vnode_write_clear(), padico_vsock_autobind(), padico_vsock_bind(), padico_vsock_recvfrom(), padico_vsock_sendto(), pfzstd_destroy(), print_sock_info(), psp_control_end_message(), psp_control_getpacket(), psp_control_getstream(), psp_control_instantiate(), psp_control_module_init(), psp_control_new_message(), psp_ibv_instantiate(), psp_ibv_worker(), psp_mx_connect(), psp_mx_init(), psp_mx_instantiate(), psp_mx_module_finalize(), psp_mx_module_init(), psp_mx_recv(), psp_mx_send(), psp_mx_worker(), psp_sf_callback(), psp_sf_connect(), psp_sf_init(), psp_sf_instantiate(), psp_sf_new_message(), psp_shm_instantiate(), psp_shm_new_message(), psp_shm_polling_worker(), psp_shm_send_header(), psp_shm_start_polling(), psp_socketfactory_module_init(), rdvclient_peerview_listener(), rdvclient_rdv_listener(), rdvserver_peerview_listener(), rdvserver_rdv_listener(), remote_control_connector(), remote_control_control_callback(), remote_control_del_node(), remote_control_finalize(), remote_control_init(), remote_control_new_node(), remote_control_node_callback(), remote_control_node_send(), request(), resolver_request_end_handler(), router_message_end_handler(), router_message_process(), router_new_node(), router_update_end_handler(), run_end_handler(), send_rc(), servant_loop(), servant_loop(), server_handler(), server_handler(), sflibss2_start_thread(), sflibssh2_authenticate(), sflibssh2_close(), sflibssh2_connect(), sflibssh2_connector_finalizer(), sflibssh2_create(), sflibssh2_destroy(), sflibssh2_instantiate(), sflibssh2_socket_connect_ssh_server(), sfplain_acceptor_finalizer(), sfplain_close(), sfplain_connect(), sfplain_connector_finalizer(), sfplain_instantiate(), sfrfw_connect(), sfrfw_gateway_close(), sfrfw_gateway_connect_client(), sfrfw_gateway_connect_server_end_handler(), sfrfw_gateway_error(), sfrfw_gateway_get_socket(), sfrfw_gateway_new(), sfrfw_instantiate(), sfrfw_module_init(), sfsnc_close(), sfsnc_connect(), sfsnc_connector_finalizer(), sfsnc_create(), sfsnc_destroy(), sfsnc_instantiate(), sfsnc_module_init(), sfsplice_acceptor_finalizer(), sfsplice_connector_finalizer(), sfsplice_destroy(), sfsplice_instantiate(), sfsplice_module_init(), sfsplice_request_handler(), sfsplice_request_process(), sfsrtun_close(), sfsrtun_connect(), sfsrtun_connect_server_end_handler(), sfsrtun_connector_finalizer(), sfsrtun_instantiate(), sfsrtun_launch_server(), sfsrtun_module_init(), sfssh2_close(), sfssh2_connect(), sfssh2_connector_finalizer(), sfssh2_create(), sfssh2_destroy(), sfssh2_instantiate(), sfssh2_module_init(), sfstun_build_tunnel(), sfstun_close(), sfstun_connector_finalizer(), sfstun_instantiate(), sfstun_module_init(), sh_unit_load(), sh_unit_start(), soap_gk_init(), soap_gk_start(), soap_gk_worker(), soap_server(), soapclient_main(), socks4client_connect(), socks4client_instantiate(), socks4client_proxy_reply_notifier(), sr_bench_init(), ssh2_control_bootstrap_connect(), ssh2_control_connector_notify(), ssh2_control_instantiate(), ssh2_control_read_callback(), ssh2_control_start(), ssh2_libssh2_authenticate(), ssh2_libssh2_connect_server(), ssh2_libssh2_init_ssh_connection(), ssh2_openssh_init_ssh_connection(), ssh2_openssh_version(), start_client(), start_server(), sysio_client(), sysio_control_bootstrap_acceptor(), sysio_control_bootstrap_connect(), sysio_control_bootstrap_connector(), sysio_control_bootstrap_server(), sysio_control_connector_notify(), sysio_control_instantiate(), sysio_control_read_callback(), sysio_control_socket_close(), sysio_control_socket_connect(), sysio_control_socket_create(), sysio_control_start(), test1(), test2(), the_bench(), tm_mod_notify(), tm_puk_acquire_lock(), tm_puk_release_lock(), tm_req_async_notifier(), topo_binding_bind_host(), topo_binding_bind_node(), topo_binding_create(), topo_binding_end_handler(), topo_binding_merge(), topo_binding_serialize(), topo_device_detect(), topo_filter_policy_getbyname(), topo_filter_policy_getname(), topo_gethostbyaddr(), topo_gethostbyname2(), topo_host_end_handler(), topo_host_from_hostent(), topo_hwaddr_end_handler(), topo_hwaddr_getbyindex(), topo_hwaddr_getbyname(), topo_hwaddr_serialize(), topo_inet_addr_detect_getifaddrs(), topo_inet_route_detect(), topo_lstopo_end_handler(), topo_network_end_handler(), topo_node_create(), topo_node_end_handler(), topo_node_start_handler(), topo_property_end_handler(), topology_populate(), tube_callback(), tube_gk_init(), unit_legacy_start(), unit_legacy_unload(), unload_end_handler(), vfd_to_vnode(), vio_alloc_desc(), vio_mod_init(), vio_pivot_vnode(), vio_release_desc(), vio_release_vnode(), vio_ring_init(), vio_store_desc(), vlink_control_resolve(), vlink_fwd_connect_handler(), vlink_fwd_gw_notifier(), vlink_fwd_listen_handler(), vlink_fwd_module_init(), vlink_id_listen(), vlink_madio_wrshutdown(), vlink_ps_callback_acceptor(), vlink_ps_close(), vlink_ps_fullshutdown(), vlink_ps_init(), vlink_registry_lookup(), vlink_resolver_resolve_host(), vlink_resolver_resolve_node(), vlink_selector_assembly_request(), vlink_selector_connect(), vlink_selector_create(), vlink_selector_create_server(), vlink_selector_process_request(), vlink_sf_bind(), vlink_sf_dumpstat(), vlink_sf_fullshutdown(), vlink_sf_listen(), vlink_status_lookup(), vnode_check_consistency(), vnode_condwait(), vnode_destroy(), vnode_hfd_close(), vnode_hfd_create(), vnode_instantiate(), vnode_unlock(), vobs_commit(), vobs_secondary_init(), vobs_set_commit(), vobs_signal(), vobs_subscribe(), vobs_unsubscribe(), vopw_accepted_send(), vopw_connrefused_send(), vopw_data_process(), vopw_data_send(), vopw_deferred_req_worker(), vopw_dynres_lookup(), vopw_dynres_resolve(), vopw_dynres_reverse_lookup(), vopw_oktosend_send(), vopw_psp_callback_CONNECT(), vopw_psp_callback_DATA(), vopw_psp_callback_EOS(), vopw_psp_callback_GET_TAG(), vopw_psp_callback_PACKET(), vopw_psp_handler(), vopw_rendezvous_send(), vopw_unregister_vnode(), vopw_vnode_lookup(), vpf_listen(), vpf_notifier(), vpf_recv_post(), vpipe_close(), vpipe_pipe(), vrp_buffer_construct(), vrp_buffer_destroy(), vrp_check_timeout(), vrp_in_frame_alive(), vrp_in_frame_construct(), vrp_in_frame_destroy(), vrp_in_frame_isalive(), vrp_in_frame_lookup(), vrp_incoming_close(), vrp_incoming_construct(), vrp_incoming_process_fragment(), vrp_incoming_process_hdr(), vrp_init(), vrp_out_frame_alive(), vrp_out_frame_construct(), vrp_out_frame_destroy(), vrp_out_frame_hdr_construct(), vrp_out_frame_isalive(), vrp_outgoing_close(), vrp_outgoing_construct(), vrp_outgoing_process_fragment(), vrp_outgoing_send_frame(), vrp_start_timer(), vrp_test_run(), vsock_madio_recvfrom(), vsock_madio_sendto(), vsock_vopw_connect(), vsock_vopw_create(), vsock_vopw_dumpstat(), vsock_vopw_gentag(), vsock_vopw_listen(), vsock_vopw_recv_post(), vsock_vopw_send_post(), write_char_tube(), write_response(), and zpf_destroy().

◆ p

◆ pipeline

allocated queue for transfer

Definition at line 6 of file Shm.h.

◆ prev

unsigned prev = (head + ( 64 ) - 1) % ( 64 )

Definition at line 88 of file Shm.h.

◆ puk_mod_dep_Shm

const struct puk_mod_dep_cell_s puk_mod_dep_Shm = { .mod_name = "Shm", .link = & puk_mod_dep_0 }
static

Definition at line 53 of file Shm.h.

◆ r

◆ retry

◆ return

return

Definition at line 88 of file Shm.h.

◆ s

Examples
Tests/VIO/vio-test.c.

Definition at line 88 of file Shm.h.

Referenced by bench_soap_server_worker(), bz2pf_decode(), bz2pf_encode(), check_buffer(), client_loop(), client_loop(), control_packet_handler(), fdsets_from_vobs_secondary(), hello_soap_worker(), lz4pf_decode(), lz4pf_encode(), lzo_memops_get_le16(), lzo_memops_get_le32(), lzo_memset(), lzopf_decode(), lzopf_encode(), main(), na_bindings_serialize(), ns_basic_print_rules(), ns_selector_load_profile(), nsbe_binding_select(), padico_control_msg_get_iovec(), padico_libfabric_init(), padico_mem_monitor_worker(), padico_na_topology_serialize(), padico_shm_init(), padico_sysio_accept(), padico_sysio_bound_inet_socket(), padico_sysio_connected_inet_socket(), padico_sysio_connected_inet_socket_sockaddr(), padico_sysio_shutdown_wr(), padico_topo_host_serialize(), padico_topo_network_serialize(), padico_topo_node_serialize(), padico_vaddr_marshall(), padico_vaddr_unmarshall(), padico_vio_accept(), padico_vio_bind(), padico_vio_close(), padico_vio_connect(), padico_vio_getpeername(), padico_vio_getsockname(), padico_vio_getsockopt(), padico_vio_listen(), padico_vio_recv(), padico_vio_recvfrom(), padico_vio_recvmsg(), padico_vio_send(), padico_vio_sendmsg(), padico_vio_sendto(), padico_vio_setsockopt(), padico_vio_shutdown(), psp_control_getstream(), psp_control_module_finalize(), psp_control_new_message(), psp_sf_connect(), servant_loop(), servant_loop(), sfsplice_connect(), soap_gk_worker(), topo_binding_serialize(), topo_device_detect(), topo_hostname_serialize(), topo_hwaddr_serialize(), vlink_selector_assembly_request(), vnode_pollfd_from_observer(), vobs_secondary_destroy(), vobs_signal(), vrp_hdr_pack(), vrp_recvfrom(), vrp_sendto(), zpf_decode(), and zpf_encode().

◆ shared_queue

shared queue for short messages sent eagerly; contains block index

Definition at line 1 of file Shm.h.

◆ short_queues

queues for short messages sent eagerly; contains block index

Definition at line 2 of file Shm.h.

◆ single

int single {

Definition at line 88 of file Shm.h.

◆ sp

Definition at line 88 of file Shm.h.

◆ su

Definition at line 88 of file Shm.h.

◆ tail

unsigned tail = q->_tail

Definition at line 88 of file Shm.h.

◆ u

◆ u0

Definition at line 88 of file Shm.h.

◆ v

Definition at line 88 of file Shm.h.