batadv_v_neigh_dump_hardif(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_v_neigh_dump_hardif(9) πŸ’–

okay so bestie, welcome to the kernel API manual for batadv_v_neigh_dump_hardif β€” yes that's a mouthful, no you don't have to say it out loud, but like… learn it, love it, it's iconic ✨


🌸 NAME 🌸

batadv_v_neigh_dump_hardif β€” dumps the neighbours of a hard interface into a message, fr fr that's the whole job πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int batadv_v_neigh_dump_hardif (struct sk_buff *msg , u32 portid , u32
seq , struct batadv_priv *bat_priv , struct batadv_hard_iface
*hard_iface , int *idx_s );

like, look at her. six arguments. main character energy honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • msg β€” the Netlink message you're dumping into 🫢 this is where the output lives
  • portid β€” the port making the netlink request, iykyk
  • seq β€” the sequence number of the netlink message, gotta keep 'em in order bestie
  • bat_priv β€” the bat priv holding all the mesh interface information β€” the whole lore ✨
  • hard_iface β€” the hard interface that's getting dumped, the moment of truth
  • idx_s β€” entries to be skipped, lowkey the "yeah we already did those ones" counter πŸ’€

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe check: this function assumes the caller holds rcu_read_lock. that's not a suggestion, that's a whole requirement β€” do not come for her without it πŸ™ˆ


⭐ RETURN ⭐

returns an error code, or 0 on success 🌈 (0 = we ate, no crumbs πŸ“)


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./net/batman-adv/bat_v.c and honestly her entire extended friend group:

like, that's not a SEE ALSO, that's a whole group chat πŸ’€πŸ’–


ok that's the whole page bestie, go forth and dump those neighbours responsibly πŸ§šβ€β™€οΈ

kisses, from ./net/batman-adv, dated October 2026 β€” same page, same batadv_v_neigh_dump_hardif(9) energy, periodt πŸ’…πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from