xdr_skb_read_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xdr_skb_read_bits πŸ’–

okay so bestie, welcome to xdr_skb_read_bits(9) β€” yes that's the section 9 kernel API manual, we're in the big leagues now, and no I'm not scared of it πŸ’…


✨ NAME ✨

xdr_skb_read_bits β€” copy some data bits from skb to internal buffer

like literally, it scoops bits out of an skb and drops them in your own little buffer πŸŽ€

🌸 SYNOPSIS 🌸

size_t xdr_skb_read_bits (struct xdr_skb_reader *desc , void *to ,
       size_t len );

that's the whole vibe. three args, one size_t coming back at you πŸ¦‹

πŸ“ ARGUMENTS πŸ“

  • desc β€” the sk_buff copy helper, your little main character struct that knows how to do the copying 🫢
  • to β€” copy destination, aka where the bytes are actually going, the it-girl of this whole operation πŸ’–
  • len β€” number of bytes to copy, so pls count responsibly ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

Possibly called several times to iterate over an sk_buff and copy data out of it.

yes bestie, possibly called several times β€” that's the whole thing. it's not a one-and-done situation, it's a loop girlie, walking over an sk_buff and pulling data out πŸ’€ so don't assume one call eats the whole buffer, okay? iykyk 🌈

🌼 SEE ALSO 🌼

those last two are also section 9, so if you liked this one you know where to find the rest of the friend group ⭐


fr fr bestie, that's everything β€” no cap, no skipped sections, no invented behaviour πŸ’œ

mwah πŸ’‹ this has been ./net/sunrpc, from the October 2026 era of the Kernel API Manual β€” xdr_skb_read_bits(9), signing off, slay 🌸✨

πŸ“¦ where this page comes from