LCOV - code coverage report
Current view: top level - flamenco/runtime - fd_txncache_shmem.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 2 2 100.0 %
Date: 2026-07-12 05:24:35 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_flamenco_runtime_fd_txncache_shmem_h
       2             : #define HEADER_fd_src_flamenco_runtime_fd_txncache_shmem_h
       3             : 
       4             : #include "../../util/fd_util_base.h"
       5             : 
       6         216 : #define FD_TXNCACHE_SHMEM_ALIGN (128UL)
       7             : 
       8          54 : #define FD_TXNCACHE_SHMEM_MAGIC (0xF17EDA2CE58CC4E0UL) /* FIREDANCE SMCCHE V0 */
       9             : 
      10             : typedef struct { ushort val; } fd_txncache_fork_id_t;
      11             : 
      12             : struct fd_txncache_shmem_private;
      13             : typedef struct fd_txncache_shmem_private fd_txncache_shmem_t;
      14             : 
      15             : FD_PROTOTYPES_BEGIN
      16             : 
      17             : FD_FN_CONST ulong
      18             : fd_txncache_shmem_align( void );
      19             : 
      20             : FD_FN_CONST ulong
      21             : fd_txncache_shmem_footprint( ulong max_live_slots,
      22             :                              ulong max_txn_per_slot );
      23             : 
      24             : void *
      25             : fd_txncache_shmem_new( void * shmem,
      26             :                        ulong  max_live_slots,
      27             :                        ulong  max_txn_per_slot,
      28             :                        ulong  seed );
      29             : 
      30             : fd_txncache_shmem_t *
      31             : fd_txncache_shmem_join( void * shtc );
      32             : 
      33             : FD_PROTOTYPES_END
      34             : 
      35             : #endif /* HEADER_fd_src_flamenco_runtime_fd_txncache_shmem_h */

Generated by: LCOV version 1.14