ib_set_cpi_capmask2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ib_set_cpi_capmask2(9) πŸ’…

okay so this is a page from the Kernel API Manual (yes, the kernel has lore too, and this is part of it 🫢), and it's about one very specific little function that sets one very specific little field. is it glamorous? no. is it essential? absolutely. let's get into it ✨


🌸 NAME 🌸

ib_set_cpi_capmask2 β€” literally just sets the capmask2 in an ib_class_port_info mad. that's the whole job. she's a one-task icon and honestly? respect πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void ib_set_cpi_capmask2 (struct ib_class_port_info *cpi , u32 capmask2
);

it returns void bestie, so don't go looking for a return value to check. there isn't one. she does the thing and she leaves 🌈


πŸŽ€ ARGUMENTS πŸŽ€

  • cpi β€” a struct ib_class_port_info. that's the thing you're poking at πŸ‘‘
  • capmask2 β€” the capmask2 to set. yes the argument is named the exact same thing it sets. no we're not gonna question it 😭

⭐ SEE ALSO ⭐

the kernel file ./include/rdma/ib_mad.h is where the vibes live, plus this whole friend group right here:

like, that's a whole squad of mad-related functions and ib_set_cpi_capmask2 is out here doing her one tiny capmask2 shift. iykyk πŸ’€


ngl if you came here looking for drama or undefined behaviour, there isn't any. she's just a setter. a little guy. a legend in her own lane 🧚

that's the whole page, bestie πŸ“ β€” brought to you by the source at ./include/rdma, dated October 2026, and signed off with ib_set_cpi_capmask2(9) because we always say the name three times for good luck πŸ’œβœ¨

πŸ“¦ where this page comes from