ib_set_cpi_capmask2(9)
π 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β astruct ib_class_port_info. that's the thing you're poking at πcapmask2β thecapmask2to 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:
ib_get_cpi_resp_time(9)ib_get_cpi_capmask2(9)opa_get_cpi_capmask2(9)ib_response_mad(9)ib_get_rmpp_resptime(9)ib_get_rmpp_flags(9)ib_set_rmpp_resptime(9)ib_set_rmpp_flags(9)ib_register_mad_agent(9)ib_unregister_mad_agent(9)ib_post_send_mad(9)ib_free_recv_mad(9)ib_modify_mad(9)ib_cancel_mad(9)ib_create_send_mad(9)ib_is_mad_class_rmpp(9)ib_get_mad_data_offset(9)ib_get_rmpp_segment(9)ib_free_send_mad(9)ib_mad_kernel_rmpp_agent(9)
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
- 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