ck_ht_entry_key_direct(3)

ck_ht_entry_key_direct3

Return key value as specified in hash table entry

Usage

#include <ck_ht.h>

uintptr_t

ck_ht_entry_key_direct(ck_ht_entry_t *entry);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_ht_entry_key_direct() function will return the key value as specified in the object pointed to by the entry argument.

It is expected that the entry is associated with a hash table initialized with CK_HT_MODE_DIRECT (see ck_ht_init(3) for more information).

Return values

ck_ht_entry_key_direct() returns 0 if the entry is empty. Otherwise, it returns the key value stored in the object pointed to by the entry argument.

Errors

Behavior is undefined if entry has not been initialized.

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.