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 1459443291 : #define FD_MAP_SUCCESS (0) 9 12406770 : #define FD_MAP_ERR_INVAL (-1) 10 578762763 : #define FD_MAP_ERR_AGAIN (-2) 11 3 : #define FD_MAP_ERR_CORRUPT (-3) 12 : //#define FD_MAP_ERR_EMPTY (-4) 13 9 : #define FD_MAP_ERR_FULL (-5) 14 220793211 : #define FD_MAP_ERR_KEY (-6) 15 : 16 : /* common map flags */ 17 : 18 106814043 : #define FD_MAP_FLAG_BLOCKING (1<<0) 19 : 20 : /* map_slot_para flags */ 21 : 22 : //#define FD_MAP_FLAG_BLOCKING (1<<0) 23 880518429 : #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 67488279 : #define FD_MAP_FLAG_RDONLY (1<<5) 29 : 30 : /* map_chain_para flags */ 31 : 32 : //#define FD_MAP_FLAG_BLOCKING (1) 33 6770124 : #define FD_MAP_FLAG_ADAPTIVE (2) 34 : 35 : #endif /* HEADER_fd_src_util_tmpl_fd_map_h */