How is the system call in Linux implemented?

前端 未结 6 1147
清歌不尽
清歌不尽 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:41

    A syscall is made of a special trap instruction, a syscall number and arguments.

    1. The special trap instruction is used to switch from user mode to kernel mode which has unlimited privilege.
    2. The syscall number and arguments are passed by register.

提交回复
热议问题