rvt_rkey_ok(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rvt_rkey_ok(9) β€” like, the whole vibe check for an RKEY πŸ’–

okay so bestie, this one lives in the Kernel API Manual and it's genuinely such a little icon. her whole job? checking the IB virtual address, the length, and the RKEY. that's it. that's the post. πŸŽ€


✨ NAME ✨

rvt_rkey_ok β€” check the IB virtual address, length, and RKEY πŸ‘‘


🌸 SYNOPSIS 🌸

int rvt_rkey_ok (struct rvt_qp *qp , struct rvt_sge *sge , u32 len , u64
vaddr , u32 rkey , int acc );

no cap, that's the whole signature. six little arguments, one big job. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • qp β€” the qp we're validating against. she's the main character here, everything gets checked through her. ✨
  • sge β€” the SGE state. keeping track of the scatter/gather situation, as one does. 🧚
  • len β€” how much data we're talking about. length of data, periodt. πŸ“
  • vaddr β€” the virtual address to place data at. yes, that kind of address. πŸ’œ
  • rkey β€” the rkey to check, obviously. it's literally in the name bestie 😭
  • acc β€” the access flags. gotta know what we're allowed to do. πŸ”₯

🌈 RETURN 🌈

1 if it worked out β€” otherwise 0. yes, just a lil 1 or 0, she's not dramatic about it. 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

so what does she actually do on success? increments the reference count. that's the whole note. increments the reference count upon success. slay, honestly β€” short, sweet, and to the point. ⭐

ngl the description is doing the absolute least here, but we respect a minimal queen. πŸ’…

πŸ’– SEE ALSO πŸ’–

literally the whole friend group 🫢 β€” and the kernel file ./drivers/infiniband/sw/rdmavt/mr.c:

go read them all, i'll wait. πŸ’€


and that's the page!! πŸŽ€ brought to you by ./drivers/infiniband/sw/rdmavt, stamped October 2026, filed under rvt_rkey_ok(9). mwah, bye bestie πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from