函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_io.c Create Date:2022-07-27 16:43:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_swap_bio

函数原型:static struct bio *get_swap_bio(gfp_t gfp_flags, struct page *page, bio_end_io_t end_io)

返回类型:struct bio

参数:

类型参数名称
gfp_tgfp_flags
struct page *page
bio_end_io_tend_io
35  bio等于bio_alloc(gfp_flags, 1)
36  如果bio
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  返回:bio
调用者
名称描述
__swap_writepage
swap_readpage