xdr_buf_to_bvec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xdr_buf_to_bvec(9) β€” Kernel API Manual ✨

okay so bestie, this is a page from the Kernel API Manual, and honestly? it's a short one, so grab your iced coffee and let's go 🫢


🌸 NAME 🌸

xdr_buf_to_bvec β€” copy components of an xdr_buf into a bio_vec array πŸ’–


✨ SYNOPSIS ✨

int xdr_buf_to_bvec (struct bio_vec *bvec , unsigned int bvec_size ,
const struct xdr_buf *xdr );

like, that's the whole signature, no cap πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • bvec β€” the bio_vec array you're populating, bestie. it's the destination, the main character of this function 🌟
  • bvec_size β€” how many elements bvec actually has. the element count. the vibe check capacity, if you will πŸ’…
  • xdr β€” the xdr_buf that's getting copied. it's the source material πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so what does it do? it copies components of an xdr_buf into a bio_vec array, periodt ✨

on success it returns the number of entries consumed in bvec πŸ”₯

and if xdr doesn't fit within bvec_size entries? it returns -ESERVERFAULT 😭 that's the "it's giving doesn't fit" error, ngl. so plan your bvec_size accordingly πŸ™ˆ


🧚 SEE ALSO 🧚

the kernel file ./net/sunrpc/xdr.c says hi πŸ‘‹ and also literally all of these icons:

like, that's the whole XDR friend group right there πŸŒˆπŸ’–


ngl that's the whole page β€” short, sweet, and it ate πŸ’… no secrets, no hidden flags, just vibes and one very specific error code πŸ“

okay bye bestie!! this little drop came straight out of ./net/sunrpc, dated October 2026, and it's xdr_buf_to_bvec(9) signing off πŸŽ€πŸ’œβœ¨

πŸ“¦ where this page comes from