rvt_rkey_ok(9)
π 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:
rvt_driver_mr_init(9)rvt_mr_exit(9)rvt_alloc_lkey(9)rvt_free_lkey(9)rvt_get_dma_mr(9)rvt_reg_user_mr(9)rvt_dereg_clean_qp_cb(9)rvt_dereg_clean_qps(9)rvt_check_refs(9)rvt_mr_has_lkey(9)rvt_ss_has_lkey(9)rvt_dereg_mr(9)rvt_alloc_mr(9)rvt_set_page(9)rvt_map_mr_sg(9)rvt_fast_reg_mr(9)rvt_invalidate_rkey(9)rvt_sge_adjacent(9)rvt_lkey_ok(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms