ib_find_pkey(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the ib_find_pkey(9) page in the Kernel API Manual β€” this is the one where the main character is a function that finds a PKey table index. periodt. πŸ’…

πŸ’– NAME πŸ’–

ib_find_pkey β€” returns the PKey table index where a specified PKey value occurs. no cap, that’s literally the whole glow-up. ✨

✨ SYNOPSIS ✨

this is the signature, and yes she’s iconic, so keep her exact:

       int ib_find_pkey (struct ib_device *device , u32 port_num , u16 pkey ,
       u16 *index );

πŸŽ€ ARGUMENTS πŸŽ€

okay so here’s the vibe check on every argument, and not a single one is getting left behind:

  • device β€” the device to query. this is the one you point at. 🫢
  • port_num β€” the port number of the device to search for the PKey. yes, port number, not a vibe. 🌸
  • pkey β€” the PKey value to search for. the actual thing we’re hunting. πŸ”
  • index β€” the index into the PKey table where the PKey was found. this is where the found result goes, iykyk. ✨

πŸ”— SEE ALSO πŸ”—

this function does not exist in a vacuum, bestie β€” here’s the whole group chat from the kernel file ./drivers/infiniband/core/device.c:


later, bestie! this page is source/version ./drivers/infiniband/core, dated October 2026, and it’s the ib_find_pkey(9) manual β€” slay πŸ’…βœ¨

πŸ“¦ where this page comes from