MCPcopy Create free account
hub / github.com/ElementsProject/lightning / mlock_tal_memory

Function mlock_tal_memory

common/utils.c:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void mlock_tal_memory(const tal_t *ptr)
102{
103 if (sodium_mlock((void *)ptr, tal_bytelen(ptr)) != 0)
104 abort();
105 tal_add_destructor(ptr, destroy_munlock);
106}
107
108bool tal_arr_eq_(const void *a, const void *b, size_t unused)
109{

Callers 5

load_hsmFunction · 0.85
hsmd_initFunction · 0.85
runFunction · 0.85
get_encryption_keyFunction · 0.85
read_stdin_passFunction · 0.85

Calls 2

tal_bytelenFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected