函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:23
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_anon_bdev - Allocate a block device for filesystems which don't have one.*@p: Pointer to a dev_t.* Filesystems which don't use real block devices can call this function* to allocate a virtual block device.* Context: Any context

函数原型:int get_anon_bdev(dev_t *p)

返回类型:int

参数:

类型参数名称
dev_t *p
1081  dev等于da_alloc_range() - Allocate an unused ID.*@ida: IDA handle.*@min: Lowest ID to allocate.*@max: Highest ID to allocate.*@gfp: Memory allocation flags.* Allocate an ID between @min and @max, inclusive. The allocated ID will
1083  如果dev恒等于负ENOSPCdev等于负EMFILE
1085  如果dev小于0则返回:dev
1088  p等于MKDEV(0, dev)
1089  返回:0
调用者
名称描述
set_anon_super