The strnlen_user function first checks to see that the user buffer is readable through a call to access_ok.
strnlen_user函数首先通过调用access_ok检查用户缓冲区是否可读。
The requested amount of data is copied from the read buffer into the user buffer, and the read call returns.
所需的数据被从读取缓冲区拷贝到用户缓冲区,read调用返回。
Once you have called aio_complete(), you no longer own the IOCB or the user buffer, and should not touch them again.
一旦调用aio_complete(),驱动程序就不再拥有IOCB或者用户缓冲区了,不应该再触碰它们。
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 supplied user buffer is not valid for the requested operation.
提供给请求操作的用户缓冲区无效。
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返回,这导致了从内核空间向用户空间的上下文切换。
应用推荐