batadv_iv_ogm_queue_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_iv_ogm_queue_add(9) β€” the Kernel API Manual, bestie edition

okay so you found yourself in the batman-adv section of the kernel API manual, and the function you're staring at is batadv_iv_ogm_queue_add β€” lowkey the bouncer at the club door of OGM transmissions. It queues up an OGM for transmission. That's it, that's the vibe. ✨


🌸 NAME 🌸

batadv_iv_ogm_queue_add β€” queue up an OGM for transmission πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

bool batadv_iv_ogm_queue_add (struct batadv_priv *bat_priv , unsigned
char *packet_buff , int packet_len , struct batadv_hard_iface
*if_incoming , struct batadv_hard_iface *if_outgoing , int own_packet ,
unsigned long send_time );

like, yes, it's a bool. she returns something. keep reading. 😌


✨ ARGUMENTS ✨

  • bat_priv β€” the bat priv with all the mesh interface information πŸ’– literally the whole personality of the mesh interface lives in here
  • packet_buff β€” pointer to the OGM 🫢 that's your actual packet bestie
  • packet_len β€” (total) length of the OGM πŸ“ yes, total, the whole thing
  • if_incoming β€” interface where the packet was received πŸŽ€ where it came from, the origin story
  • if_outgoing β€” interface for which the retransmission should be considered πŸ¦‹ i.e. where we're thinking about sending it back out
  • own_packet β€” true if it is a self-generated ogm πŸ‘‘ main character energy: did we make this one
  • send_time β€” timestamp (jiffies) when the packet is to be sent ⏰ jiffies, not seconds, do not come for me

πŸ”₯ RETURN πŸ”₯

whether forward packet was scheduled β€” that's the whole answer, a yes-or-no vibe check on whether the forward packet got scheduled πŸ’…


🌈 SEE ALSO 🌈

the source of truth, no cap: Kernel file ./net/batman-adv/bat_iv_ogm.c πŸ‘€ and then, like, the entire extended friend group:


okay that's a lot of cross-references but that's literally the whole module's call graph being iconic at you, iykyk 🧚

and that's the page, bestie!! πŸ“ this whole thing lives in the kernel tree at ./net/batman-adv, dated October 2026, and it's the batadv_iv_ogm_queue_add(9) page β€” go queue something, periodt πŸ’œ

πŸ“¦ where this page comes from