CK_RHS_HASH(3)
β¨ CK_RHS_HASH β¨
okay bestie, welcome to the CK_RHS_HASH(3) page, straight out of the Concurrency Kit (aka libck, link it with -lck) π this one's a lil macro and she is so underrated, fr fr.
πΈ SYNOPSIS πΈ
#include <ck_rhs.h>
unsigned long
CK_RHS_HASH(ck_rhs_t *hs, ck_rhs_hash_cb_t *hf, const void *key);
like, that's the whole vibe. three args, one unsigned long back. slay.
π¦ DESCRIPTION π¦
so the CK_RHS_HASH(3) macro is basically a lil matchmaker π
she takes the hash function that hf points to, and she invokes it with:
- the seed value that's chillin' inside
hsπ± - the key pointer you handed over as
keyπ
that's it. that's the whole thing. no cap. she just calls your hash function for you, already seeded from the hash set, so you don't have to go digging for the seed yourself. iconic behavior tbh π
β RETURN VALUES β
whatever your hf function returns is exactly what you get back. no middleman drama, she just passes the value straight through π«Ά
π ERRORS π
bestie. listen. it is expected thathswas previously initialized viack_rhs_init(3). if you skipped that step, that's on you, not on her π don't be the person who forgot to init.
π SEE ALSO π
the whole friend group, go say hi:
ck_rhs_init(3)ck_rhs_destroy(3)ck_rhs_iterator_init(3)ck_rhs_next(3)ck_rhs_get(3)ck_rhs_put(3)ck_rhs_set(3)ck_rhs_remove(3)ck_rhs_grow(3)ck_rhs_count(3)ck_rhs_reset(3)ck_rhs_stat(3)
and if you want even more lore, it's all waiting at http://concurrencykit.org/ β¨
k that's the page, mwah π this was Concurrency Kit, dated March 28, 2012 β go forth and hash responsibly, 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