函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-27 18:54:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_lookup_devt

函数原型:dev_t blk_lookup_devt(const char *name, int partno)

返回类型:dev_t

参数:

类型参数名称
const char *name
intpartno
1435  devt等于MKDEV(0, 0)
1439  class_dev_iter_init( & iter, & block_class, NULL, & disk_type)
1440 dev等于class_dev_iter_next( & iter)循环
1441  disk等于dev_to_disk(dev)
1444  如果字符串比较则继续下一循环
1453  退出
1455  part等于disk_get_part - get partition*@disk: disk to look partition from*@partno: partition number* Look for partition @partno from @disk. If found, increment* reference count and return it.* CONTEXT:* Don't care.* RETURNS:
1456  如果part
1457  devt等于part_devt(part)
1459  退出
1461  disk_put_part(part)
1463  class_dev_iter_exit( & iter)
1464  返回:devt
调用者
名称描述
name_to_dev_tConvert a name into device number