使用的系统文件描述符明显减少。
文件描述符是低层的输入和输出接口。
File descriptors are low-level interfaces to input and output.
fd是文件描述符,是指向文件的一个指针。
fd is the file descriptor, a pointer to the file. For this example, use the following
请记住,文件描述符包括诸如套接字之类的内容。
poll 缓存管理一个可能很大的文件描述符集。
The pollcache manages a potentially large set of file descriptors.
连接器不应对文件系统或文件描述符进行直接访问。
Connectors should not access the filesystem or file descriptors directly.
在等待一段时间之后,重新开始,重复读取每个文件描述符。
After you wait for some amount of time, you start over again by repeatedly reading each file descriptor.
它跨系统调用在请求的文件描述符集上维护文件描述符状态。
It maintains the file descriptor state on the requested file descriptor set across system calls.
在顶层是打开的file对象,它由进程的文件描述符列表引用。
At the top is the open file object, which is referenced by a process's file descriptor list.
于是,您就可以在自己的程序中通过传送文件描述符来访问该文件。
You can then continue to access it within your program by passing around the file descriptor.
当某个进程复制它自身时,内核生成所有打开的文件描述符的副本。
When a process duplicates itself, the kernel makes a copy of all open file descriptors.
通过对文件描述符执行租借,可以同内核就某个特定文件达成租约。
By using leasing on the file descriptor, you take a lease with the kernel on a particular file.
文件描述符是指向打开的文件或设备的整数,并用于执行读取和写入。
A file descriptor is an integer that refers to an open file or device, and it is used for reading and writing.
应用程序直接向本机pollset层注册文件描述符和感兴趣的事件。
An application then registers the file descriptors and interested events directly into the native pollset layer.
例如,read函数调用可以从指定的文件描述符读取一定数量的字节。
Take, for example, the read function call, which allows some number of bytes to be read from a given file descriptor.
这些事件可以是诸如计时器,信号,文件描述符上预备读取的数据,等等。
These events can be things like timers, signals, data ready for reading on a file descriptor, and so on.
在某些情况下,还可以把一般文件或另一个设备的文件描述符映射到内存。
In some cases, you can also map a file descriptor to a plain file or another device into memory.
逻辑文件系统还负责管理内核的打开文件表和每个进程的文件描述符信息。
The logical file system is also responsible for managing the kernel's open file table and the per process file descriptor information.
调用成功将返回文件描述符,它是进程尚未打开的序号最小的文件描述符。
The file descriptor returned by a successful call will be the lowest-numbered file descriptor not currently open for the process.
它还降低了维护者不安全地使用文件名的可能性(改为使用文件描述符)。
It also decreases the likelihood that a maintainer will insecurely use the file name (they need to use the file descriptor instead).
最后,数值表示应用程序的文件描述符,这是打开该文件时返回的一个整数。
Finally, a number refers to the application's file descriptor, which is an integer returned upon opening the file.
打开SCSI通用设备文件(比如sg1)获取SCSI设备的文件描述符。
Open the SCSI generic device file (such as sg1) to get the file descriptor of SCSI device.
另外,POSIXAPI使用简单的文件描述符执行读写,大家应该更熟悉。
Additionally, the POSIX API USES simple file descriptors for read and write and so should seem much more familiar.
Fexecve被用来exec文件描述符,现在可以在Linux中启用它。
Fexecve used to exec file descriptors, is now enabled in Linux.
在内核中,会为有限的对象集(例如文件描述符和其他常见结构)分配大量内存。
Within a kernel, a considerable amount of memory is allocated for a finite set of objects such as file descriptors and other common structures.
这个系统调用需要shm_open返回的文件描述符,它返回指向内存的指针。
This system call requires the file descriptor from shm_open and returns a pointer to memory.
在每个poll操作的开头,通过poll繁忙的文件描述符跟踪状态。
The state is tracked by polling busy file descriptors at the beginning of each poll operation.
在文件描述符集不需要频繁更新的情况下,最适合使用pollset接口。
The pollset interface can perform best when the file descriptor set is not frequently updated.
第一个参数fildes是函数open返回的文件描述符,用于指称具体设备。
The first parameter fildes is the open file descriptor returned from the function open , referring to a specific device.
只要有可能,应尽量避免使用获取文件名的操作,而是使用获取文件描述符的操作。
Where you can, avoid the operations that take file names, and use the operations that take file descriptors instead.
应用推荐