Function report |
Source Code:block\partitions\efi.c |
Create Date:2022-07-28 17:31:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt, gpt_entry **ptes)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct parsed_partitions * | state | |
gpt_header ** | gpt | |
gpt_entry ** | ptes |
587 | gpt_header * pgpt = NULL, * agpt = NULL |
593 | If Not ptes Then Return 0 |
599 | legacymbr = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
610 | pr_debug("Device has a %s MBR\n", good_pmbr == GPT_MBR_PROTECTIVE ? "protective" : "hybrid") |
631 | If good_pgpt Then |
638 | Return 1 |
640 | Else if good_agpt Then |
645 | pr_warn("Primary GPT is invalid, using alternate GPT.\n") |
646 | Return 1 |
649 | fail : |
654 | * gpt = NULL |
655 | * ptes = NULL |
656 | Return 0 |
Name | Describe |
---|---|
efi_partition | _partition(struct parsed_partitions *state)*@state: disk parsed partitions* Description: called from check.c, if the disk contains GPT* partitions, sets up partition entries in the kernel.* If the first block on the disk is a legacy MBR, |
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 |