Function report |
Source Code:init\do_mounts.c |
Create Date:2022-07-28 13:56:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:devt_from_partuuid - looks up the dev_t of a partition by its UUID*@uuid_str: char array containing ascii UUID* The function will return the first partition which contains a matching* UUID value in its partition_meta_info struct. This does not search
Proto:static dev_t devt_from_partuuid(const char *uuid_str)
Type:dev_t
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | uuid_str |
110 | res = 0 |
115 | offset = 0 |
116 | bool clear_root_wait = false |
121 | slash = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for |
123 | If slash Then |
132 | Else |
136 | If Not len Then |
137 | clear_root_wait = true |
138 | Go to done |
152 | res = 0 |
153 | disk = part_to_disk(dev_to_part(dev)) |
154 | part = disk_get_part(disk, partno + offset) |
155 | If part Then |
157 | put_device(part_to_dev(part)) |
160 | no_offset : |
161 | put_device(dev) |
162 | done : |
163 | If clear_root_wait Then |
164 | pr_err("VFS: PARTUUID= is invalid.\nExpected PARTUUID=<valid-uuid-id>[/PARTNROFF=%%d]\n") |
168 | root_wait = 0 |
170 | Return res |
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 |