Let there is a process with standard input from the console. The process is waiting for data entry. I enter some info and press enter.

Is the following sequence of actions correct?

  1. An interrupt is generated and the infa written to the console is written to a file that is associated with stdin.

  2. Then (in the process of the same interruption) the interrupt handler writes the information from the file to the address space of the process

  3. Removes information from a file on the file system and returns control.

  • one
  • What reasons for writing in Eng?) - Semerkin
  • If we reduce three questions to one, then I want to understand which way the infa gets to the location of the process that is waiting for - Semerkin
  • This is a rather complex internal process of the Linux kernel, which is described by the link above. If you are specifically interested in whether the input is pre-stored on the HDD, then no - everything happens as part of a virtual file system, through internal Linux buffers. Input from the keyboard enters the buffer, which is then available to the process via stdin . - zed
  • Understood, thank you) did not immediately realize that the link was) - Semerkin

0