pvrdma_modify_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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. u32 of pure specificity πŸ’œ
  • mask β€” attributes to modify. The int that says which attributes we're flipping ✨
  • props β€” the device properties. A struct 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:


ngl the whole alloc/dealloc/create/destroy pairing 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