x25_parse_facilities(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… x25_parse_facilities(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” grab your strawberry matcha πŸ“ because we're about to read some facilities off an skb and it's honestly giving lowkey iconic πŸŽ€

🌸 NAME 🌸

x25_parse_facilities β€” parses facilities from skb straight into the facilities structs, no cap 🫢


✨ SYNOPSIS ✨

int x25_parse_facilities (struct sk_buff *skb , struct x25_facilities
*facilities , struct x25_dte_facilities *dte_facs , unsigned long
*vc_fac_mask );

like literally that's the whole signature, nothing else, periodt πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the sk_buff we're parsing, bestie. that's the one. πŸ‘‘
  • facilities β€” the regular facilities 🧚 β€” this one gets updated as facilities are found, so it's very much main character energy.
  • dte_facs β€” the ITU DTE facilities 🌈 β€” also updated as DTE facilities are found, same vibe check, different struct.
  • vc_fac_mask β€” the mask πŸ”₯ and yes, it's updated with all facilities found. every single one. it ate.

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” the return codes, and you need to know them:

  • -1 β€” Parsing error 😭 the caller should drop the call and clean up. like, pack it up, it's over.
  • 0 β€” Parse OK, but this skb has no facilities. it's giving "nothing to see here" πŸ™ˆ
  • >0 β€” Parse OK, and it returns the length of the facilities header ⭐ slay.
ngl bestie, if you get that -1 you gotta drop the call and clean up. don't leave it hanging, that's not the move πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./net/x25/x25_facilities.c β€” go read it, iykyk πŸ“–πŸ’œ

okay that's the whole page, you absolutely understood it, i'm obsessed πŸŽ€πŸ’– and just so you know this lil masterpiece comes from ./net/x25 and it's dated October 2026 ⭐ β€” bye bestie, go parse some facilities πŸ’…πŸ¦‹

πŸ“¦ where this page comes from