svc_rdma_pages_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_rdma_pages_write(9) β€” like, the Kernel API Manual page, bestie ✨

okay so real talk, this is svc_rdma_pages_write from the Kernel API Manual and honestly? she's lowkey iconic. sit down, grab a strawberry drink πŸ“, and let me tell you about the girl whose whole job is Constructing RDMA Writes from pages. main character energy fr fr.


πŸŽ€ NAME πŸŽ€

svc_rdma_pages_write β€” Construct RDMA Writes from pages πŸ’–

like... that's literally her. that's the assignment. she takes pages and she constructs RDMA Writes out of them. no cap.


✨ SYNOPSIS ✨

int svc_rdma_pages_write (struct svc_rdma_write_info *info , const
       struct xdr_buf *xdr , unsigned int offset , unsigned long length );

she returns an int, and honestly the way she takes four arguments? multi-talented. we stan. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

the four besties she rolls with, in order, no line-cutting:

  • info β€” pointer to write arguments. that's her little bag of info, she carries it everywhere 🫢
  • xdr β€” the xdr_buf with pages to write. this is the actual material she's working with, the pages bestie, the whole point of the function πŸ’…
  • offset β€” offset into the content of xdr. like starting a playlist partway through β€” she's skipping to this spot 🎧
  • length β€” number of bytes to write. how much of the vibe she's committing to. count them, don't guess ⭐

🌸 RETURN 🌸

okay so this is the part where you find out how it went:

  • On success β€” returns zero. slay. perfect. nothing to fix πŸ’–
  • -E2BIG β€” if the client-provided Write chunk is too small. like trying to fit your whole wardrobe into a carry-on 😭 it does NOT fit and she will tell you
  • -ENOMEM β€” if a resource has been exhausted. out of resources, out of vibes, out of everything πŸ’€
  • -EIO β€” if an rdma-rw error occurred. something went feral in the rdma-rw layer, not her fault, but she's reporting it πŸ™ˆ
ngl, negative returns are not a vibe, but at least she tells you exactly which negative return it is. transparency queen. πŸ”₯

🧚 SEE ALSO 🧚

the friend group πŸ’œ plus the kernel file she lives in:

like, that's the whole group chat and every single one of them gets a mention because that's what good friends do πŸ’…βœ¨


and that's the page!! πŸŽ€ big mwah to ./net/sunrpc/xprtrdma for hosting her, and she's stamped October 2026 in the Kernel API Manual β€” go read a man page today bestie, it's giving intellectual πŸŒˆπŸ‘‘πŸ’–

πŸ“¦ where this page comes from