Go to the source code of this file.
|
static void | id128_to_ufid (struct m0_uint128 *id128, struct m0_ufid *ufid) |
|
static int | ufid_validate (struct m0_uint128 *id128) |
|
static uint64_t | ufid_hash (const struct m0_htable *htable, const struct m0_uint128 *id128) |
|
static int | ufid_hash_eq (const struct m0_uint128 *id1, const struct m0_uint128 *id2) |
|
| M0_HT_DESCR_DEFINE (ufid, "Hash of UFIDs", static, struct ut_ufid, u_link, u_magic, 0x43, 0x67, u_id128, ufid_hash, ufid_hash_eq) |
|
| M0_HT_DEFINE (ufid, static, struct ut_ufid, struct m0_uint128) |
|
static void | ut_ufid_seq_id_refresh (void) |
|
static void | ut_ufid_salt_refresh (void) |
|
static void | ut_ufid_proc_id_refresh (void) |
|
static void | ut_ufid_generation_id_refresh (void) |
|
static void | ut_m0_ufid_next (void) |
|
static void | ut_m0_ufid_new (void) |
|
M0_INTERNAL int | ut_ufid_init (void) |
|
M0_INTERNAL int | ut_ufid_fini (void) |
|
◆ EXPECT_EQ
◆ EXPECT_NE
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CLIENT |
◆ UFID_RESERVED_TEST
#define UFID_RESERVED_TEST (60818UL) |
◆ UFID_RESERVED_TEST_HI
◆ UFID_VALIDATE
◆ anonymous enum
Enumerator |
---|
UFID_ERR_RESERVED | |
UFID_ERR_PROC_ID | |
UFID_ERR_SALT | |
UFID_ERR_GEN_ID | |
UFID_ERR_SEQ_ID | |
Definition at line 43 of file ufid.c.
◆ id128_to_ufid()
◆ M0_HT_DEFINE()
◆ M0_HT_DESCR_DEFINE()
M0_HT_DESCR_DEFINE |
( |
ufid |
, |
|
|
"Hash of UFIDs" |
, |
|
|
static |
, |
|
|
struct ut_ufid |
, |
|
|
u_link |
, |
|
|
u_magic |
, |
|
|
0x43 |
, |
|
|
0x67 |
, |
|
|
u_id128 |
, |
|
|
ufid_hash |
, |
|
|
ufid_hash_eq |
|
|
) |
| |
◆ ufid_hash()
◆ ufid_hash_eq()
◆ ufid_validate()
static int ufid_validate |
( |
struct m0_uint128 * |
id128 | ) |
|
|
static |
◆ ut_m0_ufid_new()
static void ut_m0_ufid_new |
( |
void |
| ) |
|
|
static |
◆ ut_m0_ufid_next()
static void ut_m0_ufid_next |
( |
void |
| ) |
|
|
static |
◆ ut_ufid_fini()
M0_INTERNAL int ut_ufid_fini |
( |
void |
| ) |
|
◆ ut_ufid_generation_id_refresh()
static void ut_ufid_generation_id_refresh |
( |
void |
| ) |
|
|
static |
◆ ut_ufid_init()
M0_INTERNAL int ut_ufid_init |
( |
void |
| ) |
|
◆ ut_ufid_proc_id_refresh()
static void ut_ufid_proc_id_refresh |
( |
void |
| ) |
|
|
static |
◆ ut_ufid_salt_refresh()
static void ut_ufid_salt_refresh |
( |
void |
| ) |
|
|
static |
◆ ut_ufid_seq_id_refresh()
static void ut_ufid_seq_id_refresh |
( |
void |
| ) |
|
|
static |
◆ dummy_m0c
◆ dummy_ufid_gr
◆ ufid_tracker
◆ ut_suite_ufid
Initial value:= {
.ts_name = "helpers-ufid-ut",
.ts_tests = {
{ "m0_ufid_new",
{ "m0_ufid_next",
{ "ufid_generation_id_refresh",
{ "ufid_proc_id_refresh",
{ "ufid_salt_refresh",
{ "ufid_seq_id_refresh",
}
}
M0_INTERNAL int ut_ufid_init(void)
M0_INTERNAL int ut_ufid_fini(void)
static void ut_ufid_seq_id_refresh(void)
static void ut_ufid_salt_refresh(void)
static void ut_ufid_generation_id_refresh(void)
static void ut_ufid_proc_id_refresh(void)
static void ut_m0_ufid_new(void)
static void ut_m0_ufid_next(void)
Definition at line 39 of file ufid.c.