get_pkeys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_pkeys β€” NAME ✨

okay so get_pkeys β€” it returns the PKEY table. that's the whole vibe. the PKEY table, handed to you. periodt πŸ’–

(this one lives in the Kernel API Manual, btw β€” section 9, kernel-adjacent excellence, iykyk πŸŽ€)


🌸 SYNOPSIS 🌸

int get_pkeys (struct hfi1_devdata *dd , u32 port , u16 *pkeys );

like… look at her. iconic signature. no notes. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

okay bestie let's go through the cast of characters one by one:

  • dd β€” the hfi1_ib device. she's the main character here, the whole device struct, the one we're doing all this for πŸ‘‘
  • port β€” the IB port number. which port are we talking about?? this tells you πŸŒ€
  • pkeys β€” the pkey table is placed here. yes, here. this is the spot. the drop-off point. the pkey table literally gets parked right there πŸ“¦βœ¨

πŸ”₯ SEE ALSO πŸ”₯

the friend group, fr fr β€” go read these too:

all of them. every single one. no skipping πŸ™ˆπŸ’œ


ngl this page is short but she ate. nothing dangerous in here, no deprecated nonsense, just a pkey table and good vibes 🌈

and that's the whole page, bestie 🫢 this lil gem comes to you from ./drivers/infiniband/hw/hfi1, dropped in October 2026 β€” slay, stay cozy, and may your pkey tables always be exactly where you left them πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from