batadv_skb_head_push(9)
π batadv_skb_head_push(9)
okay so bestie, welcome to the Kernel API Manual β this one's batadv_skb_head_push, and it literally does what it says on the tin: it bumps up the header size and pushes that head pointer forward. slay. π
β¨ NAME β¨
batadv_skb_head_push β increase header size and move (push) the head pointer π«
πΈ SYNOPSIS πΈ
int batadv_skb_head_push (struct sk_buff *skb , unsigned int len );
π¦ ARGUMENTS π¦
skbβ the packet buffer that's getting modified, that's her, she's the main character πlenβ how many bytes you wanna add. the number. the amount. periodt π
π₯ DESCRIPTION π₯
β οΈ warning bestie, read this twice: this function may reallocate the skb data buffer via skb_cow_head/...
and likeβ¦ what that means is if you grabbed any pointer into the skb data before this call β think something you got from skb->data or eth_hdr β you gotta consider it invalid afterwards. gone. expired. no cap. π you literally have to reacquire it, there is no workaround, this is not a drill.
so like, don't be out here holding onto stale pointers, it's giving undefined behavior energy and we don't do that π
π RETURN π
0on success π- a negative error number if it fails π
π§ SEE ALSO π§
kernel file ./net/batman-adv/mesh-interface.c, plus the whole friend group:
batadv_sum_counter(9)batadv_interface_stats(9)batadv_interface_set_mac_addr(9)batadv_interface_change_mtu(9)batadv_interface_set_rx_mode(9)batadv_interface_tx(9)batadv_interface_rx(9)batadv_meshif_vlan_release(9)batadv_meshif_vlan_get(9)batadv_meshif_create_vlan(9)batadv_meshif_destroy_vlan(9)batadv_interface_add_vid(9)batadv_interface_kill_vid(9)batadv_set_lockdep_class_one(9)batadv_set_lockdep_class(9)batadv_meshif_init_late(9)batadv_meshif_slave_add(9)batadv_meshif_slave_del(9)batadv_get_drvinfo(9)batadv_get_strings(9)batadv_get_ethtool_stats(9)batadv_get_sset_count(9)batadv_meshif_free(9)batadv_meshif_init_early(9)batadv_meshif_validate(9)batadv_meshif_newlink(9)batadv_meshif_destroy_netlink(9)batadv_meshif_is_valid(9)
likeβ¦ that's a lot of siblings, but they're all iconic in their own way π«Ά
mwah π this page came from ./net/batman-adv, dated October 2026, and it's the batadv_skb_head_push(9) manual β go forth and reacquire your pointers, bestie, ily β
π¦ 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