batadv_tp_is_error(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– batadv_tp_is_error(9) β€” the Kernel API Manual glow-up πŸ’–

okay so bestie, gather round, because we're looking at batadv_tp_is_error from the Kernel API Manual and honestly? she's a tiny little vibe check and nothing more. one job. one question: is this throughput meter return code actually an error or not? that's it, that's the whole personality πŸŽ€


✨ NAME ✨

batadv_tp_is_error β€” check throughput meter return code for error. literally just that. she looks at the code, she tells you if it's giving "error" πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

batadv_tp_is_error (n );

that's the whole call, no cap. one argument, in and out 🌸


πŸ“ ARGUMENTS πŸ“

  • n β€” the throughput meter return code. you hand her the code, she'll tell you what's up with it. that's the entire assignment and she ate πŸ”₯

πŸ‘‘ RETURN πŸ‘‘

0 when not error was detected, != 0 otherwise.

so like: 0 means we're chill, we're fine, no error detected, main character energy 🌈. literally anything that isn't 0 means it's NOT chill β€” an error got detected 😭. simple as that.

bestie please don't assume the exact non-zero number means something specific β€” the doc just says != 0 and we respect the doc πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

okay this is the part where she name-drops her entire friend group. the whole ./include/uapi/linux/batadv_packet.h enum squad, plus the rest of the batman-adv extended family. all of them. every single one. iykyk πŸ’…

  • ./include/uapi/linux/batadv_packet.h β€” the kernel file where all these enum besties live
  • enum batadv_packettype(9)
  • enum batadv_subtype(9)
  • enum batadv_iv_flags(9)
  • enum batadv_icmp_packettype(9)
  • enum batadv_mcast_flags(9)
  • enum batadv_tt_data_flags(9)
  • enum batadv_vlan_flags(9)
  • enum batadv_bla_claimframe(9)
  • enum batadv_tvlv_type(9)
  • struct batadv_bla_claim_dst(9)
  • struct batadv_ogm_packet(9)
  • struct batadv_ogm2_packet(9)
  • struct batadv_elp_packet(9)
  • struct batadv_icmp_header(9)
  • struct batadv_icmp_packet(9)
  • struct batadv_icmp_tp_packet(9)
  • enum batadv_icmp_tp_subtype(9)
  • struct batadv_icmp_packet_rr(9)
  • struct batadv_unicast_packet(9)
  • struct batadv_unicast_4addr_packet(9)
  • struct batadv_frag_packet(9)
  • struct batadv_bcast_packet(9)
  • struct batadv_mcast_packet(9)
  • struct batadv_coded_packet(9)
  • struct batadv_unicast_tvlv_packet(9)
  • struct batadv_tvlv_hdr(9)
  • struct batadv_tvlv_gateway_data(9)
  • struct batadv_tvlv_tt_vlan_data(9)
  • struct batadv_tvlv_tt_data(9)
  • struct batadv_tvlv_tt_change(9)
  • struct batadv_tvlv_roam_adv(9)
  • struct batadv_tvlv_mcast_data(9)
  • struct batadv_tvlv_mcast_tracker(9)

like ik that's a lot of names but they're all icons and they all deserve their moment 🫢


and that's the page, bestie!! this little beauty comes to you from ./include/uapi/linux and she's stamped October 2026 β€” go forth, check your return codes, and slay βœ¨πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from