linux-2.6.33/blkdev_aio_write()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#n9e60ac0]
#backlinks
*説明 [#v48c1d18]
-パス: [[linux-2.6.33/fs/block_dev.c]]
-FIXME: これは何?
--説明
**引数 [#s7dc106f]
-struct kiocb *iocb
--
--[[linux-2.6.33/kiocb]]
-const struct iovec *iov
--
--[[linux-2.6.33/iovec]]
-unsigned long nr_segs
--
-loff_t pos
--
**返り値 [#d7673103]
-ssize_t
--
**参考 [#tfa6ccef]
*実装 [#g8ab1046]
/*
* Write data to the block device. Only intended for th...
* and the raw driver which basically is a fake block de...
*
* Does not take i_mutex for the write and thus is not f...
* use.
*/
ssize_t blkdev_aio_write(struct kiocb *iocb, const struc...
unsigned long nr_segs, loff_t pos)
{
struct file *file = iocb->ki_filp;
ssize_t ret;
-
--[[linux-2.6.33/file]]
BUG_ON(iocb->ki_pos != pos);
-
--[[linux-2.6.33/BUG_ON()]]
ret = __generic_file_aio_write(iocb, iov, nr_segs, &ioc...
-
--[[linux-2.6.33/__generic_file_aio_write()]]
if (ret > 0 || ret == -EIOCBQUEUED) {
ssize_t err;
err = generic_write_sync(file, pos, ret);
if (err < 0 && ret > 0)
ret = err;
-
--[[linux-2.6.33/generic_write_sync()]]
}
return ret;
}
EXPORT_SYMBOL_GPL(blkdev_aio_write);
-GPL のモジュールにのみシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL_GPL()]]
*コメント [#j03afedd]
終了行:
*参照元 [#n9e60ac0]
#backlinks
*説明 [#v48c1d18]
-パス: [[linux-2.6.33/fs/block_dev.c]]
-FIXME: これは何?
--説明
**引数 [#s7dc106f]
-struct kiocb *iocb
--
--[[linux-2.6.33/kiocb]]
-const struct iovec *iov
--
--[[linux-2.6.33/iovec]]
-unsigned long nr_segs
--
-loff_t pos
--
**返り値 [#d7673103]
-ssize_t
--
**参考 [#tfa6ccef]
*実装 [#g8ab1046]
/*
* Write data to the block device. Only intended for th...
* and the raw driver which basically is a fake block de...
*
* Does not take i_mutex for the write and thus is not f...
* use.
*/
ssize_t blkdev_aio_write(struct kiocb *iocb, const struc...
unsigned long nr_segs, loff_t pos)
{
struct file *file = iocb->ki_filp;
ssize_t ret;
-
--[[linux-2.6.33/file]]
BUG_ON(iocb->ki_pos != pos);
-
--[[linux-2.6.33/BUG_ON()]]
ret = __generic_file_aio_write(iocb, iov, nr_segs, &ioc...
-
--[[linux-2.6.33/__generic_file_aio_write()]]
if (ret > 0 || ret == -EIOCBQUEUED) {
ssize_t err;
err = generic_write_sync(file, pos, ret);
if (err < 0 && ret > 0)
ret = err;
-
--[[linux-2.6.33/generic_write_sync()]]
}
return ret;
}
EXPORT_SYMBOL_GPL(blkdev_aio_write);
-GPL のモジュールにのみシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL_GPL()]]
*コメント [#j03afedd]
ページ名: