CK_HT_ENTRY_KEY_SET_DIRECT(3)
π CK_HT_ENTRY_KEY_SET_DIRECT(3) π
okay bestie, so this one is from the Concurrency Kit manual β that's libck, and you link it with -lck β¨. It's a lil one, but she's important, so let's get into it π
β¨ NAME β¨
ck_ht_entry_key_set_direct β bestie's job is literally just initializing the key value inside a hash table entry π«Ά
πΈ LIBRARY πΈ
Concurrency Kit (libck, -lck) β that's the whole vibe, that's the whole library π
π¦ SYNOPSIS π¦
#include <ck_ht.h>
void
ck_ht_entry_key_set_direct(ck_ht_entry_t *entry, uintptr_t key);
like, look at her. tiny. iconic. two args and no drama π
π DESCRIPTION π
so the ck_ht_entry_key_set_direct() function goes in and initializes the object that entry points at, using the key value you passed in the key argument. that's it, that's the whole thing π
this one is typically the move when you're setting up an entry to hand off to ck_ht_get_spmc(3) and ck_ht_remove_spmc(3) operations β like, prep the entry, then let the spmc functions do their lil thing β¨
and ngl, you're expected to associate that entry with a hash table that was initialized with CK_HT_MODE_DIRECT β CK_HT_MODE_DIRECT, remember that, it's the whole point of the _direct in the name, iykyk π₯. if you wanna know more about setting that mode up, go read ck_ht_init(3) π
β RETURN VALUES β
ck_ht_entry_key_set_direct() has no return value. none. zero. she returns nothing and she's thriving π
π ERRORS π
This function will never fail. no error paths, no sadness, no errno jump scares. she simply works, periodt π
π«Ά SEE ALSO π«Ά
the whole friend group, go say hi π:
ck_ht_stat(3)ck_ht_init(3)ck_ht_destroy(3)ck_ht_hash(3)ck_ht_hash_direct(3)ck_ht_set_spmc(3)ck_ht_put_spmc(3)ck_ht_gc(3)ck_ht_get_spmc(3)ck_ht_grow_spmc(3)ck_ht_remove_spmc(3)ck_ht_count(3)ck_ht_reset_spmc(3)ck_ht_reset_size_spmc(3)ck_ht_entry_empty(3)ck_ht_entry_key_set(3)ck_ht_entry_key(3)ck_ht_entry_key_length(3)ck_ht_entry_value(3)ck_ht_entry_set(3)ck_ht_entry_set_direct(3)ck_ht_entry_key_direct(3)ck_ht_entry_value_direct(3)ck_ht_iterator_init(3)ck_ht_next(3)
Additional information available at http://concurrencykit.org/ π
okay and that's the whole page, no cap π she was written March 30, 2012 and she lives under the name CK_HT_ENTRY_KEY_SET_DIRECT(3) β an absolute icon, obsessed with her, bye bestie ππβ¨
π¦ where this page comes from
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms