Then the data is copied by the kernel into the kernel buffer associated with the output socket.
然后由内核将数据拷贝到与输出套接字相关联的内核缓冲区。
The transferTo() method causes the file contents to be copied into a kernel buffer by the DMA engine.
transferTo()方法引发DMA引擎将文件内容拷贝到内核缓冲区。
This significantly improves performance when the requested data amount is less than the kernel buffer size.
这在所需数据量小于内核缓冲区大小时极大地提高了性能。
This function accepts a pointer to a user space buffer, a pointer to a kernel buffer, and a length defined in bytes.
该函数接受一个指向用户空间缓冲区的指针、一个指向内存缓冲区的指针、以及一个以字节定义的长度。
Use of the intermediate kernel buffer (rather than a direct transfer of the data into the user buffer) might seem inefficient.
使用中间内核缓冲区(而不是直接将数据传输到用户缓冲区)看起来可能有点效率低下。
The data gets copied multiple times among the disk, kernel buffer, and user buffer before it is finally delivered to the application.
数据在被最终传入到应用程序前,在磁盘、内核缓冲区和用户缓冲区中被拷贝了多次。
The strncpy_from_user function copies a string from user space into a kernel buffer, given a user space source address and Max length.
strncpy _ from_user函数将一个字符串从用户空间复制到一个内核缓冲区,给定一个用户空间源地址和最大长度。
Unfortunately, this approach itself can become a performance bottleneck if the size of the data requested is considerably larger than the kernel buffer size.
不幸的是,如果所需数据量远大于内核缓冲区大小的话,这个方法本身可能成为一个性能瓶颈。
Using the intermediate buffer on the read side allows the kernel buffer to act as a "readahead cache" when the application hasn't asked for as much data as the kernel buffer holds.
在读取方面使用中间内核缓冲区,可以允许内核缓冲区在应用程序不需要内核缓冲区内的全部数据时,充当 “预读高速缓存(readahead cache)” 的角色。
Step two: data is copied from the kernel buffer into the user buffer, and the read system call returns. The return from the call caused a context switch from kernel back to user mode.
步骤二:数据从内核空间缓冲区复制到用户空间缓冲区,之后系统调用read返回,这导致了从内核空间向用户空间的上下文切换。
Step two: data is copied from the kernel buffer into the user buffer, and the read system call returns. The return from the call caused a context switch from kernel back to user mode.
步骤二:数据从内核空间缓冲区复制到用户空间缓冲区,之后系统调用read返回,这导致了从内核空间向用户空间的上下文切换。
应用推荐