ali_lock_sectors(9)
π 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 thestruct 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 π:
ali_c2_cable_detect(9)ali_20_filter(9)ali_fifo_control(9)ali_program_modes(9)ali_set_piomode(9)ali_set_dmamode(9)ali_warn_atapi_dma(9)ali_check_atapi_dma(9)ali_init_chipset(9)ali_init_one(9)
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
- 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