| Function report | 
| Source Code: block\genhd.c | Create Date:2022-07-28 17:19:18 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__alloc_disk_node
Proto:struct gendisk *__alloc_disk_node(int minors, int node_id)
Type:struct gendisk
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | minors | |
| int | node_id | 
| 1473 | If minors > DISK_MAX_PARTS Then | 
| 1477 | minors = DISK_MAX_PARTS | 
| 1481 | If disk Then | 
| 1482 | If Not init_part_stats( & part0) Then | 
| 1486 | init_rwsem( & lookup_sem) | 
| 1505 | seqcount_init( & nr_sects_seq) | 
| 1506 | If hd_ref_init( & part0) Then | 
| 1513 | rand_initialize_disk(disk) | 
| 1514 | class = block_class | 
| 1516 | device_initialize(disk_to_dev(disk)) | 
| 1518 | Return disk | 
| 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 |