How is the system call in Linux implemented?

前端 未结 6 1144
清歌不尽
清歌不尽 2020-11-28 03:44

When I invoke a system call in user mode,how did the call get processed in OS?

Does it invoke some some executable binary or some standard library?

If yes,wh

6条回答
  •  悲&欢浪女
    2020-11-28 04:32

    It goes through glibc, which issues a 0x80 interrupt after filling registers with parameters. The kernel's interrupt handler then looks up the syscall in the syscall table and invokes the relevant sys_*() function.

提交回复
热议问题