Listing 5-4 shows a system call module designed to allocate kernel memory.
清单5 - 4演示了一个用于分配内核内存的系统调用。
Some functions need to use a system call in order to do their work, others do not.
有些函数需要使用系统调用来完成其工作,其它函数则不需要。
Most frequently, such calls are made indirectly, though a system call interface.
通常,这种调用通过系统调用接口间接完成。
A user-space emulator such as lxrun waits for the application to try to make a system call.
用户空间模拟器,比如lxrun,会等待应用程序尝试进行系统调用。
In terms of the way it is called, there is no difference between a system call and a library function.
就调用方式而言,系统调用与库函数之间没有区别。
Communication with inotify is established through a system call. The available functions are as follows.
与inotify的通信是通过系统调用实现。
This isn't usually a problem when making a system call to the underlying operating system (at least directly).
在向底层的操作系统发起一个系统调用时,这通常都不是问题(至少直接调用时没什么问题)。
With the syscall function, you can call a system call by specifying its call index and a set of arguments.
使用syscall函数,您可以通过指定它的调用索引和一组参数来调用系统调用。
Just have your script ask for user name, password, home directory, etc. and invoke adduser with a system call.
这里只是让脚本询问用户名、密码、主目录等等,并以system调用来调用adduser。
The file descriptor used by inotify is obtained using a system call and does not have an associated device or file.
Inotify 所使用的文件描述符可以通过系统调用获得,并且没有相关设备或者文件。
When an exception occurs, you might have to examine code inside a system call to determine the cause of the exception.
发生异常时,您可能需要检查系统调用内部的代码,以确定该异常的起因。
The centralized authorization daemon named pdosd then participates in all authorization decisions when a system call is made.
然后名为pdosd的集中授权后台进程在系统调用时参与所有授权决策。
OS cache - If the browser cache does not contain the desired record, the browser makes a system call (gethostbyname in Windows).
系统缓存—如果在浏览器缓存里没有找到需要的记录,浏览器会做一个系统调用(windows里是gethostbyname)。
The format of the script includes the probe (which fires when a system call is made) and an action (the corresponding action script).
该脚本的格式包含探针(在发出系统调用时触发)和操作(对应的操作脚本)。
You set some registers and issue a system call instruction (or an interrupt) and have the kernel code called directly from the trap handler.
你可以设置一些寄存器,并发出一个系统调用指令(或中断),并由陷阱处理程序直接调用内核代码。
In the standard 2.6 Linux kernel, when a user space process makes a call into the kernel (through a system call), it cannot be preempted.
在标准2.6Linux内核中,当用户空间的进程执行内核调用时(通过系统调用),它便不能被抢占。
A system call has a well-defined interface, and the calling mechanism can generally be easily detected and handled — that's the easy part.
系统调用具有明确定义的接口,而且,通常可以方便地检测并处理调用机制——这是简单的部分。
So when you invoke a system call from your user code, say from function foo in your program, you are actually invoking a routine in the kernel.
因此,当从用户代码调用系统调用时(假定从程序中函数foo调用),实际上是在调用内核中的例程。
In this article, I explore the Linux SCI, demonstrate adding a system call to the 2.6.17 and prior 2.6 kernels, and then use this function from user-space.
在本文中,我将探究LinuxSCI,演示如何向2.6.20内核添加一个系统调用,然后从用户空间来使用这个函数。
For example, a probe can represent something as simple as invoking a system call or more complicated interactions such as a particular line of code being executed.
例如,探针可以表示简单的系统调用,也可以表示更加复杂的交互,比如执行特定的代码行。
This means that if a low-priority process makes a system call, a high-priority process must wait until that call is complete before it can gain access to the CPU.
这意味着如果低优先级进程进行了系统调用后,高优先级进程必须等到调用结束后才能访问CPU。
In operating systems, a system call, also known as a system service request, is the mechanism an application USES to request service from the operating system's kernel.
在操作系统中,系统调用,也称为系统服务请求,是应用程序用来向操作系统内核请求服务的一种机制。
Normally, when a process makes a system call that cannot be completed immediately, the process blocks and another process is scheduled in order to make full use of the processor.
通常,当一个进程进行系统调用不能立即完成时,为了保证处理器的高利用率,这个进程就会被阻塞,其他的进程会被调度执行。
When an error occurs in a system call, you can access and display a message corresponding to the error in at least one of two ways: by using either the perror or the strerror function.
当系统调用中出现错误时,您至少可以用以下两种方式的一种来访问和显示与该错误对应的消息:通过使用perror或strerror函数。
For example, a system call returning with Err#2 ENOENT (No such file or directory) would indicate that the command is expecting to find a file or directory but can't and subsequently fails.
例如,如果一个系统调用返回 Err#2ENOENT(没有这样的文件或目录),就表示此命令要寻找一个文件或目录,但是无法找到,因此运行失败。
A system call returning with Err#28 ENOSPC (No space left on device) would indicate that a disk or file system is full, potentially causing the daemon to fail to respond to service requests.
如果一个系统调用返回 Err#28ENOSPC(设备上没有剩余空间),就表示磁盘或文件系统满了,这可能导致守护进程无法响应服务请求。
While writing a user space program to execute a system call is the "proper" way to do it, when you just want to test a system call module, it's annoying to have to write an additional program first.
当你想去测试一个系统调用模块时,编写一个用户空间的程序来执行一个系统调用是种“正规”的方法。但首先要编写额外的程序,这是恼人的事情。怎样才可以执行一个系统调用而又不用编写用户空间的程序呢?
We live with a value system that I call the Extrovert Ideal—the omnipresent belief that the ideal self is gregarious, and comfortable in the spotlight.
我们生活在一个我称之为“外向理想型”的价值体系中——一个无处不在的信念,即理想的自我是善于交际的,在聚光灯下感到舒适的。
A new system allows a combine harvester, say, to send a call over to a tractor-trailer so the driver can unload the grain as and when necessary.
例如,一种新的系统允许联合收割机向牵引拖车发送呼叫,以便司机可以在必要的时候卸载谷物。
A new system allows a combine harvester, say, to send a call over to a tractor-trailer so the driver can unload the grain as and when necessary.
例如,一种新的系统允许联合收割机向牵引拖车发送呼叫,以便司机可以在必要的时候卸载谷物。
应用推荐