Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\buffered-io.c Create Date:2022-07-28 20:31:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iomap_alloc_ioend

Proto:static struct iomap_ioend *iomap_alloc_ioend(struct inode *inode, struct iomap_writepage_ctx *wpc, loff_t offset, sector_t sector, struct writeback_control *wbc)

Type:struct iomap_ioend

Parameter:

TypeParameterName
struct inode *inode
struct iomap_writepage_ctx *wpc
loff_toffset
sector_tsector
struct writeback_control *wbc
1299  bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_PAGES, & iomap_ioend_bioset)
1300  bio_set_dev(bio, block device for I/O )
1301  device address in 512 byte sectors = sector
1302  bottom bits req flags, * top bits REQ_OP. Use * accessors. = REQ_OP_WRITE | wbc_to_write_flags(wbc)
1303  bi_write_hint = i_write_hint
1304  wbc_init_bio(wbc, bio)
1306  ioend = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(bio, structiomap_ioend, io_inline_bio)
1307  Initialization list head
1308  io_type = type of mapping
1309  IOMAP_F_* = flags for mapping
1310  le being written to = inode
1311  size of the extent = 0
1312  ffset in the file = offset
1313  le system private data = NULL
1314  being built = bio
1315  Return ioend
Caller
NameDescribe
iomap_add_to_ioendTest to see if we have an existing ioend structure that we could append to* first, otherwise finish off the current ioend and start another.