Line data Source code
1 : #ifndef HEADER_fd_src_util_tmpl_fd_map_h 2 : #define HEADER_fd_src_util_tmpl_fd_map_h 3 : 4 : /* Common map error codes (FIXME: probably should get around to making 5 : unified error codes, error strings and/or flags across util at least 6 : so we don't have to do this in the generator itself) */ 7 : 8 1641575485 : #define FD_MAP_SUCCESS (0) 9 12406770 : #define FD_MAP_ERR_INVAL (-1) 10 600949732 : #define FD_MAP_ERR_AGAIN (-2) 11 3 : #define FD_MAP_ERR_CORRUPT (-3) 12 : //#define FD_MAP_ERR_EMPTY (-4) 13 3 : #define FD_MAP_ERR_FULL (-5) 14 267038582 : #define FD_MAP_ERR_KEY (-6) 15 : 16 : /* common map flags */ 17 : 18 173518867 : #define FD_MAP_FLAG_BLOCKING (1<<0) 19 : 20 : /* map_slot_para flags */ 21 : 22 : //#define FD_MAP_FLAG_BLOCKING (1<<0) 23 948775615 : #define FD_MAP_FLAG_USE_HINT (1<<2) 24 : #define FD_MAP_FLAG_PREFETCH_NONE (0<<3) 25 : #define FD_MAP_FLAG_PREFETCH_META (1<<3) 26 : #define FD_MAP_FLAG_PREFETCH_DATA (2<<3) 27 : #define FD_MAP_FLAG_PREFETCH (3<<3) 28 67488222 : #define FD_MAP_FLAG_RDONLY (1<<5) 29 : 30 : /* map_chain_para flags */ 31 : 32 : //#define FD_MAP_FLAG_BLOCKING (1) 33 30513420 : #define FD_MAP_FLAG_ADAPTIVE (2) 34 : 35 : #endif /* HEADER_fd_src_util_tmpl_fd_map_h */