CK_HT_HASH(3)
π CK_HT_HASH(3) β ck_ht_hash π
okay so bestie, welcome to the ck_ht_hash page of the Concurrency Kit manual (that's section 3 of the man pages, iykyk) π¦
π LIBRARY
Concurrency Kit β link it with libck, aka -lck. That's the whole vibe. β¨
π SYNOPSIS
#include <ck_ht.h>
void
ck_ht_hash(ck_ht_hash_t *h, ck_ht_t *ht, const void *key,
uint16_t key_length);
β¨ DESCRIPTION β¨
so basically, ck_ht_hash() is the girl who does the math so you don't have to π
She generates a hash value, and she tucks it right into the object that h points to. That value? It's valid for use in the hash table that ht points to, for the key you hand her β and that key is a bytestring type thing, specified by the key argument. πΈ
How long is that key, you ask? That's literally what key_length is for. She needs to know how many bytes she's working with, no cap. π«Ά
π«§ RETURN VALUES
ck_ht_hash() has no return value. She gives you nothing back β she just does the thing and fills in h. Silent queen behavior, honestly. π
π ERRORS
Behavior is undefined ifkeyisNULLor ifhtis uninitialized. π
fr fr, do NOT do this. Undefined behavior is not the moment. Vibe check your pointers first, bestie. π¨
π SEE ALSO
ck_ht_stat(3)ck_ht_init(3)ck_ht_destroy(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_reset_spmc(3)ck_ht_reset_size_spmc(3)ck_ht_count(3)ck_ht_entry_empty(3)ck_ht_entry_key_set(3)ck_ht_entry_key_set_direct(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/ π
and that's the whole page, bestie π this one's from March 29, 2012, and it lives in the Concurrency Kit family (libck, -lck) β go read the rest of the girlies in SEE ALSO, they ate. periodt. ππ¦β¨
π¦ 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