ata_link_offline(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so you're reading ata_link_offline(9) from the Kernel API Manual and honestly? iconic choice. let's get into it 🫢


✨ NAME ✨

ata_link_offline β€” test whether the given link is offline

like literally just a vibe check for your link. is it offline or not. that's the whole job πŸ’€


🌸 SYNOPSIS 🌸

bool ata_link_offline (struct ata_link *link );

returns a bool, takes a struct ata_link * named link. short and sweet, no notes πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • link β€” the ATA link to test. this is the thing you're asking about, bestie. hand it over and the function will tell you its whole situation πŸ”

πŸ¦‹ DESCRIPTION πŸ¦‹

so the function tests whether link is offline. that's it, that's the plot ✨

it's identical to ata_phys_link_offline when there's no slave link. no slave? same thing, different name, they're twinning fr fr πŸ’…

but when there is a slave link, there are RULES, okay? this function should only be called on the master link β€” like, main character energy only, the slave link does not get to be the one you call it on πŸ™ˆ and when you do call it on the master, it returns true if both the M/S links are offline. both. not one. both. periodt πŸ’―

LOCKING: None. β€” no locking, no stress, no hoops to jump through. it's giving low maintenance 🧚

⭐ RETURN ⭐

returns true if the port offline status is available and offline. two boxes to tick, bestie βœ…βœ…


🌈 SEE ALSO 🌈

the kernel file ./drivers/ata/libata-core.c and like... an absolutely legendary amount of friends. grab a snack, this is a long guest list πŸ“:

go read all of them. i'll wait. iykyk πŸ˜ŒπŸ’œ


and that's the whole page, bestie! this one lives in ./drivers/ata, dated October 2026, and it's filed under ata_link_offline(9) β€” go forth and vibe check those links πŸŽ€βœ¨πŸ”₯

πŸ“¦ where this page comes from