frwr_query_device(9)
π frwr_query_device
ok so this is a page from the Kernel API Manual (yes we're in kernel land today bestie, buckle up π), and it's all about frwr_query_device β the little guy that gets a transport ready for FRWR. iykyk.
β¨ SYNOPSIS β¨
int frwr_query_device (struct rpcrdma_ep *ep , const struct ib_device *device );
like literally that's the whole signature, no notes π
π«Ά ARGUMENTS π«Ά
epβ the endpoint you're filling in. this is the one getting the glow-up β¨deviceβ the RDMA device you're querying. we're asking it questions, respectfully π
πΈ DESCRIPTION πΈ
okay so when this works, it sets a whole bunch of fields on your endpoint. here's the full list, no cap, every single one:
ep->re_attrep->re_max_requestsep->re_max_rdma_segsep->re_max_fr_depthep->re_mrtype
and the return values? here's the vibe check π
- On success, it returns zero. iconic. we love a clean
0π -EINVALβ the device does not support FRWR memory registration. tragic, honestly.-ENOMEMβ the device is not sufficiently capable for NFS/RDMA. it's giving "not enough main character energy" π
π¦ SEE ALSO π¦
the whole friend group π«Ά β kernel file ./net/sunrpc/xprtrdma/frwr_ops.c plus:
frwr_mr_release(9)frwr_reset(9)frwr_mr_init(9)frwr_map(9)frwr_wc_fastreg(9)frwr_send(9)frwr_reminv(9)frwr_wc_localinv(9)frwr_wc_localinv_wake(9)frwr_unmap_sync(9)frwr_wc_localinv_done(9)frwr_unmap_async(9)frwr_wp_create(9)
and that's the page bestie!! π this one lives in ./net/sunrpc/xprtrdma and it's dated October 2026 β so yeah, she's from the future, we stan a forward-thinking queen πβ¨ go query some devices, love u, bye!! ππ
π¦ 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