你可以设置一些寄存器,并发出一个系统调用指令(或中断),并由陷阱处理程序直接调用内核代码。
You set some registers and issue a system call instruction (or an interrupt) and have the kernel code called directly from the trap handler.
Oprofile是一种细粒度的工具,可以为指令集或者为函数、系统调用或中断处理例程收集采样。
OProfile is fine-grained and can collect samples for a set of instructions, or for function, system call, or interrupt handlers.
此时write系统调用会被进程接收到的SIGBUS信号中断,因为当前进程访问了非法内存地址。
Your write system call will be interrupted by the bus error signal SIGBUS, because you performed a bad memory access.
在这样处理方式下,write系统调用返回被信号中断前已写的字节数,并将errno全局变量设置为成功。
By doing this the write system call returns with the number of bytes it wrote before it got interrupted and the errno set to success.
那是因为只有一些系统调用可以安全地调用内部信号:只有可重入的(re -entrant)或者不被信号中断的调用才可以被安全地调用。
That's because only a few system calls can be safely called inside signals. Only calls that are re-entrant or not interruptible by signals can be called safely.
一个操作系统典型地由一个函数调用集、软件中断和定期时钟周期组成。
An operating system typically consists of a set of function calls, or software interrupts, and a periodic clock tick.
内核代码和数据总是可寻址的,在任何时候,准备处理中断或系统调用。
Kernel code and data are always addressable, ready to handle interrupts or system calls at any time.
研究了在微处理器PXA255上实现内存管理、进程调度、中断处理和系统调用的机制。
The research on microprocessor PXA255 includes realization of EMS memory, process scheduling, interrupt disposal and system call mechanism.
正规中断。不能抢占内核的掩码中断源,因此可以在处理程序中调用操作系统API。
Maskable interrupt sources that cannot preempt the kernel code and are thus able to invoke operating system APIs from within their handlers.
正规中断。不能抢占内核的掩码中断源,因此可以在处理程序中调用操作系统API。
Maskable interrupt sources that cannot preempt the kernel code and are thus able to invoke operating system APIs from within their handlers.
应用推荐