Function report |
Source Code:block\partitions\aix.c |
Create Date:2022-07-28 17:26:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ad_lba(): Read bytes from disk, starting at given LBA*@state*@lba*@buffer*@count* Description: Reads @count bytes from @state->bdev into @buffer.* Returns number of bytes read on success, 0 on error.
Proto:static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, size_t count)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct parsed_partitions * | state | |
| u64 | lba | |
| u8 * | buffer | |
| size_t | count |
| 99 | totalreadcount = 0 |
| 105 | copied = 512 |
| 107 | data = read_part_sector(state, lba++, & sect) |
| 108 | If Not data Then Break |
| 113 | put_dev_sector(sect) |
| 115 | totalreadcount += copied |
| 118 | Return totalreadcount |
| Name | Describe |
|---|---|
| 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! |
| 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 |