Function report | 
Source Code:fs\block_dev.c | 
Create Date:2022-07-28 20:14:50 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Write data to the block device. Only intended for the block device itself* and the raw driver which basically is a fake block device.* Does not take i_mutex for the write and thus is not for general purpose* use.
Proto:ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kiocb * | iocb | |
| struct iov_iter * | from | 
| 1996 | bd_inode = bdev_file_inode(file) | 
| 2001 | If bdev_read_only(I_BDEV(bd_inode)) Then Return -EPERM | 
| 2004 | If IS_SWAPFILE(bd_inode) Then Return -ETXTBSY | 
| 2007 | If Not iov_iter_count(from) Then Return 0 | 
| 2010 | If The 'ki_filp' pointer is shared in a union for aio >= size Then Return -ENOSPC | 
| 2013 | If (ki_flags & (IOCB_NOWAIT | IOCB_DIRECT)) == IOCB_NOWAIT Then Return -EOPNOTSUPP | 
| 2018 | blk_start_plug( & plug) | 
| 2022 | blk_finish_plug( & plug) | 
| 2023 | Return ret | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |