pvrdma_modify_port(9)
π« pvrdma_modify_port(9) β the Kernel API Manual, bestie edition π«
okay so you found pvrdma_modify_port in the 9 section of the Kernel API Manual and you're like "what does this even do" β don't worry, I got you π«Ά. Short version: it modifies device port attributes. That's the whole vibe. Let's get into it β¨
πΈ NAME πΈ
pvrdma_modify_port β literally just modify device port attributes, that's it, that's the function π
π SYNOPSIS π
int pvrdma_modify_port (struct ib_device *ibdev , u32 port , int mask ,
struct ib_port_modify *props );
Look at that signature. Gorgeous. Returns an int, takes four args, no notes π₯
π¦ ARGUMENTS π¦
Four things go in, and here's what each one is giving:
ibdevβ the device to modify. This is your main character, the thing you're actually touching πportβ the port number. Which port are we doing this to? That one.u32of pure specificity πmaskβ attributes to modify. Theintthat says which attributes we're flipping β¨propsβ the device properties. Astruct ib_port_modify *, carrying the actual goods π
β RETURN β
Returns 0 on success β slay, we love a clean zero π β otherwise a negative errno. So if you see a negative number coming back, that's not a vibe, that's an error, and you should probably look at it π
π SEE ALSO π
Here's where the actual code lives, iykyk:
Kernel file ./drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
And the whole friend group of related calls, all in (9) land β go read these too, fr fr:
pvrdma_query_device(9)pvrdma_query_port(9)pvrdma_query_gid(9)pvrdma_query_pkey(9)pvrdma_alloc_ucontext(9)pvrdma_dealloc_ucontext(9)pvrdma_mmap(9)pvrdma_alloc_pd(9)pvrdma_dealloc_pd(9)pvrdma_create_ah(9)pvrdma_destroy_ah(9)
ngl the wholealloc/dealloc/create/destroypairing situation is so satisfying β like, balance. symmetry. icon behavior π
and that's the page, bestie π this one came from ./drivers/infiniband/hw/vmw_pv... (the full path being ./drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c), dated October 2026 β so yes, it's giving future-core aesthetic π§β¨ periodt.
π¦ 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