tuhdo / os01

Bootstrap yourself to write an OS from scratch. A book for self-learner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How a processor reads data from a network card

Mr-robot5 opened this issue · comments

Please answer my question, I don’t get it out of my head because there is no idea how this happens.
How a processor reads data from a network card??
Suppose an interruption occurred. And then what? How does he know in which transistor to send NOR or HOT, etc. How does he skip and calculate this source data and get the data that we need?

commented

You should look for DMA - Direct Memory Access. Typically, a NIC card is also a mini-computer that can send/receive network data and can directly access the system memory. Thus, the NIC can place data there when it receives network data, then send an interrupt to the CPU to notify some data is ready.

Transistors is just a building block for higher level functions. Think of transistors as bricks in your house. For example, if you want to mount your TV, you say you mount it on your wall, not on a brick. Bricks constitute the wall that you can use. Of course, if there is no brick, then there is no wall.

And what is AND, NOR, NOT, OR? Isn't that a transistor? I got confused about something.

But when the processor reads the data, it passes them through the transistors OR, AND, NOR, NOT, and so on?