RTEMS 6.1-rc1
Macros | Functions

Block Device Partition Management. More...

#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <rtems.h>
#include <rtems/bdbuf.h>
#include <rtems/bdpart.h>
#include <rtems/endian.h>

Macros

#define RTEMS_BDPART_MBR_PARTITION_TYPE(type)
 

Functions

void rtems_bdpart_to_partition_type (uint8_t mbr_type, uuid_t type)
 Returns the partition type for the MBR partition type value mbr_type in type.
 
bool rtems_bdpart_to_mbr_partition_type (const uuid_t type, uint8_t *mbr_type)
 Converts the partition type in type to the MBR partition type. More...
 
rtems_status_code rtems_bdpart_get_disk_data (const char *disk_name, int *fd_ptr, rtems_disk_device **dd_ptr, rtems_blkdev_bnum *disk_end)
 
rtems_status_code rtems_bdpart_read (const char *disk_name, rtems_bdpart_format *format, rtems_bdpart_partition *pt, size_t *count)
 Reads the partition information from the physical disk device with name disk_name. More...
 

Detailed Description

Block Device Partition Management.

Macro Definition Documentation

◆ RTEMS_BDPART_MBR_PARTITION_TYPE

#define RTEMS_BDPART_MBR_PARTITION_TYPE (   type)
Value:
{ \
(type), 0xa2U, 0x2eU, 0x38U, \
0x38U, 0xb5U, 0xdeU, 0x11U, \
0xbcU, 0x13U, 0x00U, 0x1dU, \
0x09U, 0xb0U, 0x5fU, 0xa4U \
}