Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lk_mangle_minor - scatter minor numbers apart*@minor: minor number to mangle* Scatter consecutively allocated @minor number apart if MANGLE_DEVT* is enabled. Mangling twice gives the original value.* RETURNS:* Mangled value.* CONTEXT:* Don't care.

Proto:static int blk_mangle_minor(int minor)

Type:int

Parameter:

TypeParameterName
intminor
471  Return minor
Caller
NameDescribe
blk_alloc_devtlk_alloc_devt - allocate a dev_t for a partition*@part: partition to allocate dev_t for*@devt: out parameter for resulting dev_t* Allocate a dev_t for block device
blk_free_devtlk_free_devt - free a dev_t*@devt: dev_t to free* Free @devt which was allocated using blk_alloc_devt().* CONTEXT:* Might sleep.
blk_invalidate_devtWe invalidate devt by assigning NULL pointer for devt in idr.
get_gendiskget_gendisk - get partitioning information for a given device*@devt: device to get partitioning information for*@partno: returned partition index* This function gets the structure containing partitioning* information for the given device @devt.