batadv_iv_o..._dump_hardif(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_neigh_dump_hardif(9) β€” like, the Kernel API Manual, bestie ✨

Okay so picture this: it's giving kernel-internals energy, the manual is literally called the Kernel API Manual, and today's main character is batadv_iv_ogm_neigh_dump_hardif(9). Yes the title got truncated with ... in the header, no that's not me being lazy, that's just how it's living. πŸŽ€


✨ NAME ✨

batadv_iv_ogm_neigh_dump_hardif β€” dumps the neighbours of a hard interface straight into a message. That's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

int batadv_iv_ogm_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 );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • msg β€” the netlink message we're dumping into. This is the canvas, the message gets the neighbours poured into it πŸ’Œ
  • portid β€” the port that's making the netlink request. Like, who's asking, basically.
  • seq β€” the sequence number of the netlink message. Gotta keep the messages in order, it's giving organized queen πŸ‘‘
  • bat_priv β€” the bat priv holding all the mesh interface information. The whole mesh brain trust lives here fr fr.
  • hard_iface β€” the hard interface whose neighbours we're dumping. This one's literally the subject of the whole function, no cap.
  • idx_s β€” number of entries to skip. Yes bestie, it's a skip counter, we're not starting from zero necessarily πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

So here's the thing β€” this function assumes the caller holds rcu_read_lock. That's not a suggestion, that's the rule. Like, the caller has to be holding it already. This function is not out here grabbing locks for you, she's assuming you did your homework. 🧚

Lowkey important caveat: the function assumes the caller holds rcu_read_lock. If you didn't, that's on you, and it's giving undefined-vibes territory πŸ’€

⭐ RETURN ⭐

Returns an error code, or 0 on success. Slay when it's zero, cry when it's not 😭


🌈 SEE ALSO 🌈

The whole friend group, present and accounted for β€” plus the kernel file ./net/batman-adv/bat_iv_ogm.c they all live in:


That's the whole page, bestie, and yes it ate πŸ’… Signing off from ./net/batman-adv, dated October 2026 β€” see you in the next dump πŸ¦‹βœ¨

πŸ“¦ where this page comes from