Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_io.c Create Date:2022-07-28 15:13:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_swap_bio

Proto:static struct bio *get_swap_bio(gfp_t gfp_flags, struct page *page, bio_end_io_t end_io)

Type:struct bio

Parameter:

TypeParameterName
gfp_tgfp_flags
struct page *page
bio_end_io_tend_io
35  bio = bio_alloc(gfp_flags, 1)
36  If bio Then
39  bi_sector = Returns the page offset into bdev for the specified page's swap entry.
40  bio_set_dev(bio, bdev)
41  device address in 512 byte sectors <<= PAGE_SHIFT determines the page size - 9
42  bi_end_io = end_io
44  bio_add_page(bio, page, PAGE_SIZE * hpage_nr_pages(page), 0)
46  Return bio
Caller
NameDescribe
__swap_writepage
swap_readpage