mlx5r_umr_revoke_mr(9)
π mlx5r_umr_revoke_mr(9) β like, the Kernel API Manual bestie β¨
okay so this is mlx5r_umr_revoke_mr(9) from the Kernel API Manual and honestly? it's giving "one job, does it well" energy π no cap, let's get into it.
πΈ NAME πΈ
mlx5r_umr_revoke_mr β fence all DMA on the MR π§β¨ that's the whole vibe, that's the whole function.
π¦ SYNOPSIS π¦
int mlx5r_umr_revoke_mr (struct mlx5_ib_mr *mr );
literally just hand it an MR and it returns an int, periodt π
π ARGUMENTS π
mrβ the MR to fence. the main character of this whole operation tbh π that's the memory region getting fenced off, no questions asked.
β¨ DESCRIPTION β¨
okay so here's the tea β β once this function returns, the NIC is not gonna be doing any DMA to the pages under the MR. none. zero. not a single byte π«π and any DMA that was already in progress? it gets completed. like, finished properly, not just abandoned mid-vibe. π«Ά
and bestie, listen β if this function fails, that's not a "oops try again" situation π that means the HW has failed catastrophically. like, catastrophic-catastrophic. the hardware is not okay. that's the failure signal, iykyk ππ₯
π SEE ALSO π
- Kernel file
./drivers/infiniband/hw/mlx5/umr.cβ the source, go read it if you're nosy (you should be) π§ mlx5r_umr_dmabuf_update_pgsz(9)β her sister function, go say hi π
and that's the page!! mwah π this gem lives under ./drivers/infiniband/hw/mlx5, dated October 2026, brought to you by the mlx5r_umr_revoke_mr(9) era of the Kernel API Manual β slay responsibly, 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