Turnstone Operating System
Loading...
Searching...
No Matches
disk_gpt.64.c File Reference

GPT Disk Implementation. More...

#include <efi.h>
#include <disk.h>
#include <crc.h>
#include <strings.h>
#include <memory.h>
#include <random.h>

Classes

struct  gpt_parts_iter_metadata_t
 
struct  disk_partition_ctx_t
 

Typedefs

typedef struct gpt_parts_iter_metadata_t gpt_parts_iter_metadata_t
 
typedef struct disk_partition_ctx_t disk_partition_ctx_t
 

Functions

 MODULE ("turnstone.kernel.hw.disk")
 
int8_t gpt_disk_close (const disk_or_partition_t *d)
 
int8_t gpt_write_gpt_metadata (const disk_t *d)
 
int8_t gpt_check_and_format_if_need (const disk_t *d)
 
uint8_t gpt_add_partition (const disk_t *d, disk_partition_context_t *part_ctx)
 
int8_t gpt_del_partition (const disk_t *d, uint8_t partno)
 
disk_partition_context_tgpt_get_partition_context (const disk_t *d, uint8_t partno)
 
disk_partition_tgpt_get_partition (const disk_t *d, uint8_t partno)
 
disk_partition_tgpt_get_partition_by_type_data (const disk_t *d, const void *data)
 
int8_t gpt_part_iter_destroy (iterator_t *iter)
 
iterator_tgpt_part_iter_next (iterator_t *iter)
 
int8_t gpt_part_iter_end_of_iterator (iterator_t *iter)
 
const void * gpt_part_iter_get_item (iterator_t *iter)
 
const void * gpt_part_iter_delete_item (iterator_t *iter)
 
iterator_tgpt_get_partition_contexts (const disk_t *d)
 
int8_t efi_create_guid (efi_guid_t *guid)
 
int8_t efi_guid_equal (efi_guid_t guid1, efi_guid_t guid2)
 
disk_partition_context_tgpt_create_partition_context (efi_guid_t *type, const char_t *name, uint64_t start, uint64_t end)
 
disk_tgpt_get_or_create_gpt_disk (disk_t *underlaying_disk)
 
memory_heap_tdisk_partition_get_heap (const disk_or_partition_t *d)
 
uint64_t disk_partition_get_size (const disk_or_partition_t *d)
 
uint64_t disk_partition_get_block_size (const disk_or_partition_t *d)
 
int8_t disk_partition_write (const disk_or_partition_t *d, uint64_t lba, uint64_t count, uint8_t *data)
 
int8_t disk_partition_read (const disk_or_partition_t *d, uint64_t lba, uint64_t count, uint8_t **data)
 
int8_t disk_partition_flush (const disk_or_partition_t *d)
 
int8_t disk_partition_close (const disk_or_partition_t *d)
 
const disk_partition_context_tdisk_partition_get_context (const disk_partition_t *p)
 
const disk_tdisk_partition_get_disk (const disk_partition_t *p)
 

Detailed Description

GPT Disk Implementation.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.