iwpm_compare_sockaddr(9)
β¨ iwpm_compare_sockaddr β¨
okay so bestie, welcome to iwpm_compare_sockaddr(9) β that's section 9, the Kernel API Manual, we're deep in kernel land and honestly? it's giving main character energy. this one's a little function that literally just looks at two addresses and tells you if they're the same π
π NAME π
iwpm_compare_sockaddr β compare two sockaddr storage structs. that's it. that's the whole job. no cap.
πΈ SYNOPSIS πΈ
int iwpm_compare_sockaddr (struct sockaddr_storage *a_sockaddr , struct
sockaddr_storage *b_sockaddr );
it takes two pointers, returns an int, and yes the spacing is exactly like that, don't come for me π
π¦ ARGUMENTS π¦
a_sockaddrβ the first sockaddr you wanna compare. your OG. the one on the left πb_sockaddrβ the second sockaddr you wanna compare. the contender. the one on the right π«Ά
π RETURN π
returns 0 if these two are holding the same ip/tcp address info. if they're not the same? it returns 1. that's the whole vibe check, no in-between, no "undefined behaviour" cliffhanger, we love a clean answer β¨
lowkey remember:0= match,1= nope. don't flip it in your head, bestie, that's how bugs are born π
π SEE ALSO π
first up, the source of truth itself β this lives in the kernel file ./drivers/infiniband/core/iwpm_util.h, go look, it's right there π
and then the whole friend group, fr fr:
iwpm_get_nlmsg_request(9)iwpm_free_nlmsg_request(9)iwpm_find_nlmsg_request(9)iwpm_wait_complete_req(9)iwpm_get_nlmsg_seq(9)iwpm_add_remote_info(9)iwpm_check_registration(9)iwpm_set_registration(9)iwpm_get_registration(9)iwpm_send_mapinfo(9)iwpm_mapinfo_available(9)iwpm_validate_nlmsg_attr(9)iwpm_create_nlmsg(9)iwpm_parse_nlmsg(9)iwpm_print_sockaddr(9)iwpm_send_hello(9)
like a whole squad of iwpm_* functions, and honestly? they ate π₯
and that's the page, bestie π this lil gem comes to you from ./drivers/infiniband/core, dated October 2026 β yes, October 2026, we're manifesting the future β¨ mwah, go compare some sockaddrs, ily π
π¦ 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