Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dio_bio_alloc

Proto:static inline void dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, struct block_device *bdev, sector_t first_sector, int nr_vecs)

Type:void

Parameter:

TypeParameterName
struct dio *dio
struct dio_submit *sdio
struct block_device *bdev
sector_tfirst_sector
intnr_vecs
419  bio = bio_alloc(GFP_KERNEL, nr_vecs)
421  bio_set_dev(bio, bdev)
422  device address in 512 byte sectors = first_sector
423  bsolete, don't use in new code
424  If s IO async ? Then bi_end_io = Asynchronous IO callback.
426  Else bi_end_io = The BIO completion handler simply queues the BIO up for the process-context* handler.* During I/O bi_private points at the dio. After I/O, bi_private is used to* implement a singly-linked list of completed BIOs, at dio->bio_list.
429  bi_write_hint = ki_hint
431  under assembly = bio
432  current first logical block in bio = Offset in file
Caller
NameDescribe
dio_new_bioThere is no bio. Make one now.