batadv_neigh_node_release(9)
π batadv_neigh_node_release(9) β the Kernel API Manual glow-up
okay so bestie, welcome to batadv_neigh_node_release β a little function in the Kernel API Manual and honestly? she's doing the cleanup work nobody claps for. π§Ήβ¨
β¨ NAME β¨
batadv_neigh_node_release β release neigh_node from lists and queue for free after rcu grace period
like, she unlinks the neigh_node from her lists and then queues her up to be freed after the RCU grace period, because you can't just yank a girl out of memory while readers might still be looking at her. π rcu grace period is giving waiting-for-the-group-chat-to-go-quiet before you delete the messages. fr fr.
πΈ SYNOPSIS πΈ
void batadv_neigh_node_release (struct kref *ref );
π ARGUMENTS π
refβ kref pointer of the neigh_node. it's thestruct kref *handle for theneigh_nodeyou're releasing, iykyk π
π¦ SEE ALSO π¦
the whole friend group lives in the kernel file ./net/batman-adv/originator.c, and these are the icons she's linked with:
batadv_orig_hash_find(9)batadv_compare_orig(9)batadv_orig_node_vlan_get(9)batadv_vlan_id_valid(9)batadv_orig_node_vlan_new(9)batadv_orig_node_vlan_release(9)batadv_originator_init(9)batadv_neigh_ifinfo_release(9)batadv_hardif_neigh_release(9)batadv_orig_router_get(9)batadv_orig_to_router(9)batadv_orig_ifinfo_get(9)batadv_orig_ifinfo_new(9)batadv_neigh_ifinfo_get(9)batadv_neigh_ifinfo_new(9)batadv_neigh_node_get(9)batadv_hardif_neigh_create(9)batadv_hardif_neigh_get_or_create(9)batadv_hardif_neigh_get(9)batadv_neigh_node_create(9)batadv_neigh_node_get_or_create(9)batadv_hardif_neigh_dump(9)batadv_orig_ifinfo_release(9)batadv_orig_node_free_rcu(9)batadv_orig_node_release(9)batadv_originator_free(9)batadv_orig_node_new(9)batadv_purge_neigh_ifinfo(9)batadv_purge_orig_ifinfo(9)batadv_purge_orig_neighbors(9)batadv_find_best_neighbor(9)batadv_purge_orig_node(9)batadv_purge_orig_ref(9)batadv_purge_orig(9)batadv_orig_dump(9)
bestie reminder: the freeing is deferred β queued for free after the rcu grace period, not instant. don't go touching her after you call this. π
and that's the page!! mwah π this one came from the ./net/batman-adv source tree, dated October 2026 (the batadv_neigh_node_release(9) manual, obviously π), so if you cite her, you know exactly where she's from. slay, go read the source, periodt. ππ«Ά
π¦ 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