The stack
A program never talks to a disk. Its read() goes down a stack of kernel layers: the file system, the block layer, then the device driver. Each layer talks only to the one below it, and only the driver touches the device.
A device driver is the kernel code that knows one kind of device. It writes the device's registers to give orders and handles its interrupts. Above it, the kernel uses one standard interface for every disk.
Going down
open() is a system call. The file system looks up the name a.txt, checks you may read it, and gives back a small number, the file descriptor. 0, 1 and 2 are taken, so it returns 3.
read() traps into the kernel, asking for 4096 bytes. The file system first checks the page cache, kernel memory holding recently read blocks. This part of a.txt is not there yet: a miss. It has to come from the device.
The file system knows where files live on the disk. Byte 0 of a.txt is in block 8200, so it asks the block layer for that block, 4096 bytes. From here down, nobody knows about files.
The block layer works for every disk the same way. It puts the request in a queue, may merge it with neighbouring blocks or reorder it, then hands it to the driver for this SSD.
The device
Only the driver knows this device's registers. It writes the block number 8200 and the RAM address to copy into, then one final write, READ, tells the device to start.
The device needs time. Instead of checking it over and over (polling), the kernel puts your program to sleep and lets the CPU run another program meanwhile.
The SSD reads block 8200 from its flash and copies the 4096 bytes straight into the page cache in RAM. This is direct memory access, DMA: the CPU does not move a single byte.
Coming back
Done, the SSD raises an interrupt. The CPU pauses the other program and jumps to the driver's interrupt handler. It checks the status, marks the request complete and wakes your sleeping program.
When your program runs again, the kernel copies the 4096 bytes from the page cache into buf, in the program's own memory. read() returns 4096, the number of bytes read.
Read it again and the page cache answers: the device is never touched. Because each layer hides the one below, the same read() works on any disk, and a new device needs only a new driver.
What happens
;; step 1/12 · stack
user your program read(fd, buf, 4096)
--------- system call -----------------------------
kernel file system (VFS) files and offsets
block layer block requests, queues
device driver this device's registers
--------- hardware --------------------------------
device SSD controller does the work, then interrupts
The SSD here has three simple registers, like the canonical device in OSTEP. A real NVMe SSD takes its commands from queues the driver builds in RAM, and one register write tells it new commands are waiting, but the idea is the same: the driver prepares the work, one write starts it, the device copies by DMA and interrupts when done. Block 8200 is an example: where a file's bytes live depends on the file system and the disk. 4096 bytes is one 4 KiB block and one memory page, 8 sectors of 512 bytes.