tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ATA TRIM?



On Wed, 7 Dec 2022, Mouse wrote:

printf("TRIM %s: calling exec\n",device_xname(wd->sc_dev));
                          rv = wd->atabus->ata_exec_command(wd->drvp,&cmd);
printf("TRIM %s: returned %d\n",device_xname(wd->sc_dev),rv);
                          return(0);


ata_exec_command() will start the command, but, the completion of it
is usually signalled by an interrupt. Presumably, the 9.2 ATA-related code
takes care of this as ata_exec_command() takes a `xfer' parameter rather
than a bare command struct. How does 5.2 wait for ATA command completion?

-RVP


Home | Main Index | Thread Index | Old Index