Function report |
Source Code:block\genhd.c |
Create Date:2022-07-28 17:19:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:blk_lookup_devt
Proto:dev_t blk_lookup_devt(const char *name, int partno)
Type:dev_t
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | name | |
int | partno |
1439 | class_dev_iter_init( & iter, & block_class, NULL, & disk_type) |
1440 | When dev = class_dev_iter_next( & iter) cycle |
1441 | disk = dev_to_disk(dev) |
1451 | devt = MKDEV(MAJOR( dev_t, creates the sysfs "dev" ), MINOR( dev_t, creates the sysfs "dev" ) + partno) |
1453 | Break |
1456 | If part Then |
1461 | disk_put_part(part) |
1463 | class_dev_iter_exit( & iter) |
1464 | Return devt |
Name | Describe |
---|---|
name_to_dev_t | Convert a name into device number |
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 |