__vlan_hwaccel_get_tag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __vlan_hwaccel_get_tag β€” a Kernel API Manual moment πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and today's main character is __vlan_hwaccel_get_tag, a lil function whose whole personality is "get the VLAN ID that is in @skb->cb[]". yes that's it. that's the whole vibe. ✨


🌸 NAME 🌸

__vlan_hwaccel_get_tag β€” literally just here to get the VLAN ID that is in @skb->cb[] 🫢


✨ SYNOPSIS ✨

int __vlan_hwaccel_get_tag (const struct sk_buff *skb , u16 *vlan_tci );

like. look at her. she takes two things and returns an int. iconic behavior tbh πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the skbuff you're querying, bestie. she's the one being asked the question πŸ‘€
  • vlan_tci β€” the buffer where you store the value. bring your own storage fr fr πŸŽ€

πŸ”₯ RETURN πŸ”₯

returns an error if skb->vlan_tci is not set correctly 😭 like, if the tag isn't set right, that's an error, no cap. not me hoping your tag is set correctly tho πŸ™ˆ


🌈 SEE ALSO 🌈

all the siblings, cousins, and adjacent lore, all in the Kernel file ./include/linux/if_vlan.h πŸ’–:

like genuinely a whole friend group. go say hi to all of them πŸ§šβ€β™€οΈ


and that's the whole page bestie, no hidden lore, no extra options, nothing sneaky. the tag is either set correctly or it isn't, and she will tell you πŸ’€

okay bye ily, this page lives in ./include/linux, dated October 2026, and it's from the Kernel API Manual β€” mwah, slay, periodt πŸŒΈπŸ’œβ­

πŸ“¦ where this page comes from