sci_port_link_detected(9)
π sci_port_link_detected(9) β the kernel API manual, bestie edition
okay so we're in sci_port_link_detected(9) territory, part of the Kernel API Manual, and honestly? this one's kind of a little vibe check between the port layer and the PHY layer. let's get into it π«Ά
β¨ NAME β¨
sci_port_link_detected β (yes bestie, the original really does just trail off like that. iconic, honestly. no cap, that's the whole name section.) π
πΈ SYNOPSIS πΈ
bool sci_port_link_detected (struct isci_port *iport , struct isci_phy
*iphy );
it returns a bool, it takes an struct isci_port * and an struct isci_phy *, and that's the whole shape of it. slay. β¨
π ARGUMENTS π
iportβ the port that's associated with the phy object. like, they're linked up (pun fully intended π ).iphyβ the phy object that's out here trying to go link up. main character energy, honestly.
π¦ DESCRIPTION π¦
so here's the tea, bestie: this method gets called by the PHY object when the link is detected. π
and then it's basically a permission slip moment. if the port wants the PHY to continue on to the link up state, then the port layer must return true. but if the port object returns false, the phy object has to halt its whole attempt to go link up. like, full stop. π
here's what the return values are giving:
trueβ the phy object can continue to the link up condition.trueis returned if this phy can continue to the ready state. βfalseβ it can not continue on to the ready state. β
and why does this notification even exist? for wide ports and direct attached phys, bestie. that's the whole reason. π
β οΈ one little caveat they dropped in here, fr fr: since there are no wide ported SATA devices, this could become an invalid port configuration. so likeβ¦ keep that in mind. π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/scsi/isci/port.c, and here's the whole friend group of related calls β go say hi:
sci_port_get_properties(9)isci_port_link_down(9)isci_port_hard_reset_complete(9)sci_port_is_phy_mask_valid(9)sci_port_construct_dummy_rnc(9)sci_port_general_link_up_handler(9)sci_port_is_wide(9)sci_port_post_dummy_request(9)sci_port_abort_dummy_request(9)sci_port_resume_port_task_scheduler(9)sci_port_ready_substate_operational_exit(9)sci_port_add_phy(9)sci_port_remove_phy(9)
and that's the page!! π this one comes to you from ./drivers/scsi/isci, dated October 2026, and it's the sci_port_link_detected(9) manual through and through. mwah, go read your kernel source bestie ππ§β¨
π¦ 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