svc_rdma_iov_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ svc_rdma_iov_write(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this lil page is all about svc_rdma_iov_write and honestly it's giving "small function, big responsibilities" energy. let's get into it 🫢


🌸 NAME 🌸

svc_rdma_iov_write β€” construct RDMA Writes from an iov πŸ¦‹

like, it literally builds RDMA Write operations out of an iov. that's the whole vibe. no cap.


✨ SYNOPSIS ✨

int svc_rdma_iov_write (struct svc_rdma_write_info *info , const struct
       kvec *iov );

so you're calling it with a struct svc_rdma_write_info * and a const struct kvec * and it hands you back an int. iconic signature, tbh πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • info β€” pointer to write arguments πŸ’– this is where all the write deets live.
  • iov β€” the kvec to write 🌟 like, the actual data chunk you're pushing out.

πŸ”₯ RETURN πŸ”₯

okay so here's the tea on what comes back β˜•

  • On success, returns zero βœ… slay, we love a clean exit.
  • -E2BIG β€” if the client-provided Write chunk is too small 😭 like the chunk literally cannot hold it, not enough room bestie.
  • -ENOMEM β€” if a resource has been exhausted πŸ’€ out of memory/resources, rough.
  • -EIO β€” if an rdma-rw error occurred πŸ™ˆ something went sideways at the rdma-rw level.
bestie pls check that return value, fr fr. zero is the only happy one here πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file to go peep: ./net/sunrpc/xprtrdma/svc_rdma_rw.c 🌈

and here's the whole bestie squad of related functions, no gatekeeping ✨


aaaand that's the page!! πŸŽ€ mwah πŸ’‹ this one lives over at ./net/sunrpc/xprtrdma, dated October 2026, so go check it out irl whenever, bestie. iykyk πŸ’œβœ¨

πŸ“¦ where this page comes from