函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:read_dev_sector

函数原型:unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p)

返回类型:unsigned char

参数:

类型参数名称
struct block_device *bdev
sector_tn
Sector *p
607  mapping等于i_mapping
610  page等于read_mapping_page(mapping, (The type of an index into the pagecache.)(n >> (PAGE_SHIFT determines the page size - 9)), NULL)
611  如果非是错误
612  如果PageError(page)则转到:fail
614  v等于page
615  返回:page_address(page)加n按位与1左移PAGE_SHIFT determines the page size 减9位的值减1的值左移9位的值
616  fail :
617  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
619  v = NULL
620  返回:NULL