Interrupt driven I/0 handling
I modern architectures the peripheral has direct access to the system RAM independent of the CPU and what it is executing. This is called a DMA (direct memory access) transfer.

In other words when the interrupt is raised the entire transfer is already completed and you can read the data transferred.