Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
efi.c File Reference
#include <linux/crc32.h>
#include <linux/ctype.h>
#include <linux/math64.h>
#include <linux/slab.h>
#include "check.h"
#include "efi.h"

Go to the source code of this file.

Functions

 __setup ("gpt", force_gpt_fn)
 
int efi_partition (struct parsed_partitions *state)
 

Function Documentation

__setup ( "gpt"  ,
force_gpt_fn   
)
int efi_partition ( struct parsed_partitions state)

efi_partition(struct parsed_partitions *state)

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, it will get handled by msdos_partition(). If it's a Protective MBR, we'll handle it here.

We do not create a Linux partition for GPT, but only for the actual data partitions. Returns: -1 if unable to read the partition table 0 if this isn't our partition table 1 if successful

Definition at line 617 of file efi.c.