BATADV_SKB_CB(9)
π BATADV_SKB_CB(9) π
okay so bestie, welcome to the Kernel API Manual β this is the BATADV_SKB_CB page and honestly it's a short one but it's iconic in its own little way π
β¨ NAME β¨
BATADV_SKB_CB β the macro that gets you the batadv_skb_cb out of the skb control buffer. that's the whole job. she's focused. she's employed. π
πΈ SYNOPSIS πΈ
BATADV_SKB_CB (__skb );
literally just one argument, no cap. give her the skb and she'll give you the goods β¨
π¦ ARGUMENTS π¦
__skbβ the skb holding the control buffer. that's it. that's the whole input. she's not asking for much, just your skb π«Ά
π§ DESCRIPTION π§
so like, the members of the control buffer? they're defined in struct batadv_skb_cb over in types.h β that's where all the actual shape of the thing lives, go look there if you want the details, i'm just the messenger π
and plot twist: this macro is inspired by the similar macro TCP_SKB_CB in tcp.h. like, it looked at that macro and said "i want that energy." and honestly? it ate. π₯
β RETURN β
it hands you back a pointer to the batadv_skb_cb of the skb. pointer. to the cb. of the skb. the way that it just... returns exactly what it says it returns ππ
π SEE ALSO π
run don't walk, bestie, there's a whole friend group here π:
- Kernel file
./net/batman-adv/main.h BATADV_TP_MAX_NUM(9)enum batadv_mesh_state(9)enum batadv_uev_action(9)enum batadv_uev_type(9)batadv_print_vid(9)batadv_compare_eth(9)batadv_has_timed_out(9)batadv_atomic_dec_not_zero(9)batadv_smallest_signed_int(9)batadv_seq_before(9)batadv_seq_after(9)batadv_add_counter(9)batadv_inc_counter(9)
okay that's the whole page, you're basically a batman-adv girlie now π¦β¨ mwah π
~ with love, from ./net/batman-adv, dated October 2026 β see you in the next manpage, bestie π«Άπ
π¦ 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