Asynchronous vectored I/O operations

70 篇文章 8 订阅 ¥9.90 ¥99.00
文章探讨了内核中的异步I/O操作,特别是如何使用 vectored operations(也称为Scatter / Gather)进行读写操作。 vectored IO允许在一个系统调用中使用多个缓冲区从磁盘读取和写入数据,减少了系统调用次数,提高了效率。它通过避免为连续块分配大存储区域和保证数据完整性来提高性能。文章还提到了新的AIO补丁,旨在简化API,提供更强大的异步I/O功能。
摘要由CSDN通过智能技术生成

英文原文是https://lwn.net/Articles/170954/,其描述了vectored operations。这里在原文中间加上了与之对应的内核代码的分析。

The file_operations structure contains pointers to the basic I/O operations exported by filesystems and char device drivers. This structure currently contains three different methods for performing a read operation:

    ssize_t (*read) (struct file *filp, char __user *buffer, size_t size, 
                     loff_t *pos);
    ssize_t (*readv) (struct file *filp, const struct iovec *iov, 
                      unsigned long niov, loff_t *pos);
    ssize_t (*aio_read) (struct kiocb *iocb, char __user *buffer, 
                         size_t size, loff_t pos);

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值