1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// SPDX-License-Identifier: GPL-3.0-or-later #include "c_rhash.h" struct bin_item { uint8_t key_type:4; void *key; uint8_t value_type:4; void *value; struct bin_item *next; }; typedef struct bin_item *c_rhash_bin; struct c_rhash_s { size_t bin_count; c_rhash_bin *bins; };