ata_link_online(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil function page and it's genuinely so cute and short, you're gonna eat it up. It's ata_link_online(9), aka the vibe-check function for ATA links ✨


✨ NAME ✨

ata_link_online β€” the way that this thing literally just tests whether the given link is online πŸ¦‹


🌸 SYNOPSIS 🌸

bool ata_link_online (struct ata_link *link );

πŸŽ€ ARGUMENTS πŸŽ€

  • link β€” the ATA link you wanna test. that's it. that's the whole argument, she's low maintenance πŸ’…

🧚 DESCRIPTION 🧚

Okay so the whole point: this tests whether link is online. that's the assignment, and she understood it πŸ‘‘

Here's the tea though β€” when there's no slave link, this is identical to ata_phys_link_online. same energy, same result, no notes.

But when there is a slave link? Then bestie, listen: this function should only be called on the master link, and it will return true if any of the M/S links is online. like, she's checking the whole group chat, not just one person's read receipts πŸ‘€

LOCKING: None. zero. nada. no locks here. it's giving "no cap, no mutex" πŸ™ˆ

⭐ RETURN ⭐

True if the port online status is available and online. both things, periodt. if it's not available, don't come crying to her πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/libata-core.c β€” and honestly the whole libata friend group tagged along, so here's the full roll call, no one left behind fr fr 🫢:

like, the entire roster showed up to the party πŸ”₯ iykyk.


and that's the whole page bestie, love that for us πŸ’œ this lil masterpiece comes to you from ./drivers/ata, dated October 2026, and it's filed under ata_link_online(9) in the Kernel API Manual β€” mwah, slay, go check your links πŸŽ€βœ¨

πŸ“¦ where this page comes from