Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partition-generic.c Create Date:2022-07-28 17:21:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:read_dev_sector

Proto:unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p)

Type:unsigned char

Parameter:

TypeParameterName
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  If Not IS_ERR(page) Then
612  If PageError(page) Then Go to fail
614  v = page
615  Return 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  Return NULL