Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-28 20:02:28
Last Modify:2022-05-24 06:42:17 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int get_anon_bdev(dev_t *p)

Type:int

Parameter:

TypeParameterName
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  If dev == -ENOSPC Then dev = -EMFILE
1085  If dev < 0 Then Return dev
1088  p = MKDEV(0, dev)
1089  Return 0
Caller
NameDescribe
set_anon_super