iwpm_compare_sockaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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