函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static int blk_mangle_minor(int minor)

返回类型:int

参数:

类型参数名称
intminor
471  返回:minor
调用者
名称描述
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.