Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3296251
  • 博文数量: 754
  • 博客积分: 10132
  • 博客等级: 上将
  • 技术积分: 7780
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-14 23:36
文章分类

全部博文(754)

文章存档

2012年(3)

2011年(39)

2010年(66)

2009年(167)

2008年(479)

我的朋友

分类: LINUX

2008-08-26 23:31:54

int 0x80 is the assembly language instruction that is used to invoke system calls in on x86 (i.e., Intel-compatible) processors.

An assembly language is a human-readable notation for the machine language that a specific type of processor (also called a central processing unit or CPU) uses. Machine language, also referred to as machine code, is a pattern of (i.e., zeros and ones) that is directly readable by a processor.

A system call is a request in a made via a software interrupt by an active process for a service performed by the (i.e., the core of the operating system), such as input/output (e.g., communication with the keyboard, mouse or display device) or creation (i.e., the creation of a new process). A process is an executing (i.e., running) instance of a ; an active process is a process that is currently advancing in the CPU (as opposed to processes that are awaiting their turns for use of the CPU).

系统调用是在类Unix OS上,一个活动进程通过软件中断提出的, 希望得到内核服务的请求,比如I/O服务(与键盘,鼠标或显示设备的通讯)或者进程创建。

An interrupt is a signal to the operating system that an event has occurred, and it results in changes in the sequence of instructions executed by the CPU. There are numerous sources of interrupts, including pressing a key on keyboard, moving the mouse, timers, disk drives, signals originating elsewhere on the network and the loss of electrical power. A software interrupt is an interrupt that originates in software, usually by a process in .

中断是通知操作系统某件事件发生的信号,它会改变CPU当前执行的指令顺序。不同的中断源包括键盘上的按键、鼠标的移动、定时器、磁盘驱动、网络信号以及断电等等。

Each process starts out in user mode. When a process makes a system call, it causes the CPU to switch temporarily into , which has (i.e., administrative) privileges, including access to any space or other resources on the system. When the kernel has satisfied the process's request, it restores the process to user mode.

When a system call is made, the calling of the int 0x80 instruction is preceded by the storing in the process register (i.e., a very small amount of high-speed memory built into the processor) of the (i.e., input data) for it. 

阅读(1097) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~