netlbl_unlhsh_remove(9)
π netlbl_unlhsh_remove(9)
Okay bestie, welcome to the Kernel API Manual page for netlbl_unlhsh_remove β yes that name is a mouthful, no we're not changing it, it's iconic. This is the function that removes an entry from the unlabeled hash table, and honestly? She's giving cleanup crew main character energy. π§Ήβ¨
πΈ NAME πΈ
netlbl_unlhsh_remove β remove an entry from the unlabeled hash table π
β¨ SYNOPSIS β¨
int netlbl_unlhsh_remove (struct net *net , const char *dev_name , const
void *addr , const void *mask , u32 addr_len , struct netlbl_audit
*audit_info );
That's the whole signature, copied exactly, not one character changed, periodt. π
π ARGUMENTS π
netβ the network namespace, i.e. which little universe of networking we're operating in πdev_nameβ the interface name, the actual name of the netdev, not a vibe π«addrβ the IP address, in network byte order (yes, that order, don't @ me) π¦maskβ the address mask, also in network byte order, matching energy πaddr_lenβ length of the address and mask:4for IPv4,16for IPv6 βaudit_infoβ the NetLabel audit information, so the audit trail stays fed π
π DESCRIPTION π
So what does she do? She removes an existing entry from the unlabeled connection hash table. That's the whole gig. π«Ά
Returns zero on success, and negative values on failure β so like, negative vibes mean something went wrong, lowkey important to check. π
π₯ SEE ALSO π₯
The kernel file, bestie, go read it:
./net/netlabel/netlabel_unlabeled.c
And the whole extended friend group, all of them, in order, no cap:
netlbl_unlhsh_free_iface(9)netlbl_unlhsh_hash(9)netlbl_unlhsh_search_iface(9)netlbl_unlhsh_add_addr4(9)netlbl_unlhsh_add_addr6(9)netlbl_unlhsh_add_iface(9)netlbl_unlhsh_add(9)netlbl_unlhsh_remove_addr4(9)netlbl_unlhsh_remove_addr6(9)netlbl_unlhsh_condremove_iface(9)netlbl_unlhsh_netdev_handler(9)netlbl_unlabel_acceptflg_set(9)netlbl_unlabel_addrinfo_get(9)netlbl_unlabel_accept(9)netlbl_unlabel_list(9)netlbl_unlabel_staticadd(9)netlbl_unlabel_staticadddef(9)netlbl_unlabel_staticremove(9)netlbl_unlabel_staticremovedef(9)netlbl_unlabel_staticlist_gen(9)netlbl_unlabel_staticlist(9)netlbl_unlabel_staticlistdef(9)netlbl_unlabel_genl_init(9)netlbl_unlabel_init(9)netlbl_unlabel_getattr(9)netlbl_unlabel_defconf(9)
Go off, read the source, remove those entries responsibly. The unlabeled hash table is not gonna clean itself up, and that's literally why this function exists. ππΈ
And that's a wrap, bestie! π This came from ./net/netlabel, dated October 2026, and its whole identity is netlbl_unlhsh_remove(9) β slay, take care, bye! π¦πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms