sci_sas_address_compare(9)
π sci_sas_address_compare(9) β Kernel API Manual β¨
okay so bestie, welcome to sci_sas_address_compare, a little function from the Kernel API Manual and honestly it's giving "tiny but mighty" π
πΈ SYNOPSIS πΈ
s32 sci_sas_address_compare (struct sci_sas_address address_one , struct sci_sas_address address_two );
π«Ά ARGUMENTS π«Ά
address_oneβ astruct sci_sas_addressthat's a SAS Address to be compared. one of the two contestants, if you will πaddress_twoβ anotherstruct sci_sas_addressthat's also a SAS Address to be compared. the other one, obviously π¦
β¨ DESCRIPTION β¨
so what does it do? it compares the two SAS Addresses, periodt. and then it reports back with a signed value β no cap, that's literally the whole vibe π
here's the breakdown, bestie:
- if SAS Address One > SAS Address Two, you get back
> 0π₯ - else if SAS Address One < SAS Address Two, you get back
< 0πΈ - otherwise (they're the same!), you get back
0π
and the full signed-value tea, spelled out for you: x > 0 > y where x is returned for Address One > Address Two, y is returned for Address One < Address Two, and 0 is returned for Address One = Address Two π
ngl, the original description has a lil typo β "ofr" β but we're keeping the facts exactly as they are, so just know it means "for" π
it's giving classic comparator energy: sort-friendly, sign-based, iconic π
π SEE ALSO π
- Kernel file
./drivers/scsi/isci/port_config.cβ go look, iykyk π§ sci_port_configuration_agent_find_port(9)sci_port_configuration_agent_validate_ports(9)sci_mpc_agent_link_down(9)sci_apc_agent_link_up(9)sci_apc_agent_link_down(9)
like, the whole friend group fr fr π«Ά
and that's the page, bestie! π this absolute gem lives in ./drivers/scsi/isci, dated October 2026 β slay, see you in the next man 9 session ππ
π¦ 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