ali_lock_sectors(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ali_lock_sectors(9) β€” Kernel API Manual πŸ¦‹

🌟 NAME

ali_lock_sectors β€” Keep older devices to 255 sector mode πŸŽ€


πŸŽ€ SYNOPSIS

void ali_lock_sectors (struct ata_device *adev );

🫢 ARGUMENTS

  • adev β€” the device, bestie πŸ’…. That's the struct ata_device * you're passing in.

✨ DESCRIPTION

Okay so picture this: this function gets called during the bus probe for each device that is found. πŸ‘€ We use this call to lock the sector count of the device to 255 or less on older ALi controllers. That's the whole point, no cap.

If we didn't do this, then large I/O's would require LBA48 commands β€” and the older ALi controllers require those, which means they get issued by slower PIO methods 😭. So yeah, this tiny call is out here keeping older devices in their 255-sector lane, and honestly? Iconic behavior. πŸ’…βœ¨


🌈 SEE ALSO

Kernel file ./drivers/ata/pata_ali.c β€” plus the whole friend group πŸ’–:


Source/version: ./drivers/ata Β· date: October 2026 Β· page: ali_lock_sectors(9) β€” byeee bestie, go keep those older ALi devices at 255 sectors or less πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from