*参照元 [#g7176ca9] #backlinks *説明 [#f4229ca5] -パス: [[linux-2.6.33/fs/block_dev.c]] -FIXME: これは何? --説明 **引数 [#n744fac9] -int rw -- -struct kiocb *iocb -- --[[linux-2.6.33/kiocb]] -const struct iovec *iov -- --[[linux-2.6.33/iovec]] -loff_t offset -- -unsigned long nr_segs -- **返り値 [#adbac4c5] -ssize_t -- **参考 [#p8855c4b] *実装 [#m0712b9f] static ssize_t blkdev_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) { struct file *file = iocb->ki_filp; struct inode *inode = file->f_mapping->host; -file->f_mapping は struct address_space 型 --[[linux-2.6.33/file]] --[[linux-2.6.33/inode]] --[[linux-2.6.33/address_space]] return blockdev_direct_IO_no_locking(rw, iocb, inode, I_BDEV(inode), iov, offset, nr_segs, blkdev_get_blocks, NULL); - --[[linux-2.6.33/blockdev_direct_IO_no_locking]] --[[linux-2.6.33/blockdev_direct_IO_no_locking()]] } *コメント [#mfd148e7]