rhltable_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, this is the rhltable_remove(9) page from the Kernel API Manual, and it does exactly what it says on the tin: remove object from hash list table. It’s the β€œplease take this thing out of the hash list table” function, and yes, it has main character energy πŸ’….

✨ SYNOPSIS ✨

int rhltable_remove (struct rhltable *hlt , struct rhlist_head *list ,
const struct rhashtable_params params );

🫢 ARGUMENTS 🫢

  • hlt β€” hash list table. That’s the table, bestie 🫢.
  • list β€” pointer to hash list head inside object. It’s the list head inside the object, not the whole object vibe.
  • params β€” hash table parameters. The settings, the parameters, the whole config situation.

πŸŒ€ DESCRIPTION πŸŒ€

Okay so here’s the tea β˜•: since the hash chain is single linked, the removal operation needs to walk the bucket chain upon removal. The way that works is literally a little bucket-chain stroll, and the removal operation is thus considerably slower if the hash table is not correctly sized. No cap, sizing matters πŸ”₯.

It will automatically shrink the table if permitted when residency drops below 30%. Slay, self-sizing behavior ✨.

Returns zero on success, -ENOENT if the entry could not be found. So if it’s not there, it’s giving β€œnot found” with -ENOENT, periodt πŸ’€.

πŸ”— SEE ALSO πŸ”—

If you wanna keep reading, go peek at the Kernel file ./include/linux/rhashtable.h and struct bucket_table(9), plus rht_grow_above_75(9), rht_shrink_below_30(9), rht_grow_above_100(9), rht_grow_above_max(9), rht_for_each_from(9), rht_for_each(9), rht_for_each_entry_from(9), rht_for_each_entry(9), rht_for_each_entry_safe(9), rht_for_each_rcu_from(9), rht_for_each_rcu(9), rht_for_each_entry_rcu_from(9), rht_for_each_entry_rcu(9), rhl_for_each_rcu(9), rhl_for_each_entry_rcu(9), rhashtable_lookup(9), rhashtable_lookup_fast(9), rhltable_lookup(9), rhashtable_insert_fast(9), rhltable_insert_key(9), rhltable_insert(9), rhashtable_lookup_insert_fast(9), rhashtable_lookup_get_insert_fast(9), rhashtable_lookup_insert_key(9), rhashtable_lookup_get_insert_key(9), rhashtable_remove_fast(9), rhashtable_replace_fast(9), rhltable_walk_enter(9), rhltable_free_and_destroy(9). It’s a whole linked-list-adjacent friend group, iykyk 🌈.


Sign-off time, bestie πŸŽ€: this page’s source is ./include/linux, its date stamp is October 2026, and it’s filed under rhltable_remove(9) β€” iconic, honestly πŸ‘‘βœ¨.

πŸ“¦ where this page comes from