Home
last modified time | relevance | path

Searched refs:hashtable (Results 1 – 20 of 20) sorted by relevance

/linux/include/linux/
A Dhashtable.h52 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) argument
60 #define hash_add(hashtable, node, key) \ argument
61 hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
69 #define hash_add_rcu(hashtable, node, key) \ argument
70 hlist_add_head_rcu(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
99 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) argument
/linux/tools/include/linux/
A Dhashtable.h49 #define hash_init(hashtable) __hash_init(hashtable, HASH_SIZE(hashtable)) argument
57 #define hash_add(hashtable, node, key) \ argument
58 hlist_add_head(node, &hashtable[hash_min(key, HASH_BITS(hashtable))])
87 #define hash_empty(hashtable) __hash_empty(hashtable, HASH_SIZE(hashtable)) argument
/linux/drivers/net/wireguard/
A Dpeerlookup.c19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket()
30 hash_init(table->hashtable); in wg_pubkey_hashtable_alloc()
79 return &table->hashtable[(__force u32)index & in index_bucket()
80 (HASH_SIZE(table->hashtable) - 1)]; in index_bucket()
90 hash_init(table->hashtable); in wg_index_hashtable_alloc()
A Dpeerlookup.h19 DECLARE_HASHTABLE(hashtable, 11);
35 DECLARE_HASHTABLE(hashtable, 13);
/linux/Documentation/livepatch/
A Dshadow-vars.rst11 The implementation introduces a global, in-kernel hashtable that
15 specifically, the parent pointer serves as the hashtable key while the
16 numeric id subsequently filters hashtable queries. Multiple shadow
26 A hashtable references all shadow variables. These references are
49 - search hashtable for <obj, id> pair
52 - search hashtable for <obj, id> pair
62 - add <obj, id> to the global hashtable
65 - search hashtable for <obj, id> pair
75 - add <obj, id> pair to the global hashtable
78 - find and remove a <obj, id> reference from global hashtable
[all …]
/linux/Documentation/security/
A Dsiphash.rst55 DECLARE_HASHTABLE(hashtable, 8);
66 …return &table->hashtable[siphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtable
127 Do not ever use the hsiphash functions except for as a hashtable key
130 over `jhash` as a means of mitigating hashtable flooding denial of service
177 DECLARE_HASHTABLE(hashtable, 8);
188 …return &table->hashtable[hsiphash(input, sizeof(*input), &table->key) & (HASH_SIZE(table->hashtabl…
197 will not be a problem, as the hashtable lookup isn't the bottleneck. And in
/linux/drivers/infiniband/ulp/opa_vnic/
A Dopa_vnic_internal.h274 #define vnic_hash_init(hashtable) __hash_init(hashtable, OPA_VNIC_MAC_TBL_SIZE) argument
276 #define vnic_hash_add(hashtable, node, key) \ argument
278 &hashtable[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))])
/linux/net/sunrpc/
A Dauth.c25 struct hlist_head *hashtable; member
298 new->hashtable = kcalloc(hashsize, sizeof(new->hashtable[0]), GFP_KERNEL); in rpcauth_init_credcache()
299 if (!new->hashtable) in rpcauth_init_credcache()
389 head = &cache->hashtable[i]; in rpcauth_clear_credcache()
414 kfree(cache->hashtable); in rpcauth_destroy_credcache()
526 hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) { in rpcauth_lookup_credcache()
545 hlist_for_each_entry(entry, &cache->hashtable[nr], cr_hash) { in rpcauth_lookup_credcache()
556 hlist_add_head_rcu(&cred->cr_hash, &cache->hashtable[nr]); in rpcauth_lookup_credcache()
/linux/security/selinux/
A DKconfig50 int "SELinux sidtab hashtable size"
55 This option sets the number of buckets used in the sidtab hashtable
/linux/fs/afs/
A Dxdr_fs.h92 __be16 hashtable[AFS_DIR_HASHTBL_SIZE]; member
/linux/fs/affs/
A Damigaffs.h58 __be32 hashtable[]; member
/linux/tools/perf/util/
A Dauxtrace.c1969 struct hlist_head *hashtable; member
1997 c->hashtable = ht; in auxtrace_cache__new()
2020 hlist_for_each_entry_safe(entry, tmp, &c->hashtable[i], hash) { in auxtrace_cache__drop()
2035 zfree(&c->hashtable); in auxtrace_cache__free()
2057 hlist_add_head(&entry->hash, &c->hashtable[hash_32(key, c->bits)]); in auxtrace_cache__add()
2072 hlist = &c->hashtable[hash_32(key, c->bits)]; in auxtrace_cache__rm()
2098 hlist = &c->hashtable[hash_32(key, c->bits)]; in auxtrace_cache__lookup()
/linux/Documentation/admin-guide/device-mapper/
A Dvdo-design.rst349 This claim is implemented as an entry in a hashtable where the key is
353 If a data_vio looks in the hashtable and finds that another data_vio is
363 hashtable. This implicit locking is handled by the zone divisions
375 lock, like the logical block lock in step 2, is a hashtable entry
412 added to a hashtable like the logical block locks in step 2. This
413 hashtable is also covered by the implicit physical zone lock. The
435 tracked in a hashtable similar to the way logical block locks are
436 tracked in step 2. This hashtable is covered by the implicit lock on
440 data_vio obtains a hash lock from the pool, adds it to the hashtable,
/linux/Documentation/bpf/
A Dprog_sk_lookup.rst55 hashtable-based lookup, while ``SK_DROP`` causes the transport layer to drop the
/linux/Documentation/networking/
A Dnf_flowtable.rst27 The flowtable uses a resizable hashtable. Lookups are based on the following
A Dscaling.rst277 Per-flow rate is calculated by hashing each packet into a hashtable
/linux/Documentation/RCU/
A DlistRCU.rst303 through a hashtable using an RCU-managed hlist for the hash chains. When a new
/linux/Documentation/driver-api/media/
A Dv4l2-controls.rst90 handler is expected to handle. It will allocate a hashtable based on this
/linux/lib/
A DKconfig.debug2700 This builds the hashtable KUnit test suite.
2702 include/linux/hashtable.h. For more information on KUnit and
/linux/Documentation/trace/
A Dhistogram.rst119 are in terms of hashtable entries - if a run uses more entries than

Completed in 47 milliseconds