函数逻辑报告 |
Source Code:block\partitions\efi.c |
Create Date:2022-07-27 19:06:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ad_lba(): Read bytes from disk, starting at given LBA*@state: disk parsed partitions*@lba: the Logical Block Address of the partition table*@buffer: destination buffer*@count: bytes to read* Description: Reads @count bytes from @state->bdev into @buffer.
函数原型:static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, size_t count)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct parsed_partitions * | state | |
u64 | lba | |
u8 * | buffer | |
size_t | count |
240 | totalreadcount等于0 |
242 | n等于lba乘bdev_logical_block_size(bdev)除512 |
248 | copied等于512 |
250 | data等于read_part_sector(state, n++, & sect) |
256 | put_dev_sector(sect) |
258 | totalreadcount加等于copied |
261 | 返回:totalreadcount |
名称 | 描述 |
---|---|
alloc_read_gpt_entries | alloc_read_gpt_entries(): reads partition entries from disk*@state: disk parsed partitions*@gpt: GPT header* Description: Returns ptes on success, NULL on error |
alloc_read_gpt_header | alloc_read_gpt_header(): Allocates GPT header, reads into it from disk*@state: disk parsed partitions*@lba: the Logical Block Address of the partition table* Description: returns GPT header on success, NULL on error. Allocates |
find_valid_gpt | d_valid_gpt() - Search disk for valid GPT headers and PTEs*@state: disk parsed partitions*@gpt: GPT header ptr, filled on return.*@ptes: PTEs ptr, filled on return.* Description: Returns 1 if valid, 0 on error. |
alloc_pvd | alloc_pvd(): reads physical volume descriptor*@state*@lba* Description: Returns pvd on success, NULL on error.* Allocates space for pvd and fill it with disk blocks at @lba* Notes: remember to free pvd when you're done! |
alloc_lvn | alloc_lvn(): reads logical volume names*@state*@lba* Description: Returns lvn on success, NULL on error.* Allocates space for lvn and fill it with disk blocks at @lba* Notes: remember to free lvn when you're done! |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |