Function report |
Source Code:block\genhd.c |
Create Date:2022-07-28 17:17:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_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
Proto:int blk_alloc_devt(struct hd_struct *part, dev_t *devt)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct hd_struct * | part | |
dev_t * | devt |
490 | disk = part_to_disk(part) |
495 | devt = MKDEV( major number of driver , first_minor + partno) |
496 | Return 0 |
502 | spin_lock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.) |
504 | spin_unlock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.) |
511 | Return 0 |
Name | Describe |
---|---|
__device_add_disk | __device_add_disk - add disk information to kernel list*@parent: parent device for the disk*@disk: per-device partitioning information*@groups: Additional per-device sysfs groups*@register_queue: register the queue if set to true* This function registers |
add_partition | Must be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |