libzbc
Data Fields
zbc_zone Struct Reference

Zone information data structure. More...

#include <zbc.h>

Data Fields

uint64_t zbz_length
 
uint64_t zbz_start
 
uint64_t zbz_write_pointer
 
uint8_t zbz_type
 
uint8_t zbz_condition
 
uint8_t zbz_attributes
 
uint8_t __pad [5]
 

Detailed Description

Zone information data structure.

Provide all information of a zone (position and size, condition and attributes). This data structure is updated using the zbc_report_zones function. In order to unifies handling of zone information for devices with different logical block sizes, zone start, length and write pointer position are reported in unit of 512B sectors, regardless of the actual drive logical block size.

Field Documentation

uint8_t zbc_zone::__pad[5]

Padding to 32 bytes.

uint8_t zbc_zone::zbz_attributes

Zone attributes (enum zbc_zone_attributes).

uint8_t zbc_zone::zbz_condition

Zone condition (enum zbc_zone_condition).

uint64_t zbc_zone::zbz_length

Zone length in number of 512B sectors.

uint64_t zbc_zone::zbz_start

First sector of the zone (512B sector unit).

uint8_t zbc_zone::zbz_type

Zone type (enum zbc_zone_type).

uint64_t zbc_zone::zbz_write_pointer

Zone write pointer sector position (512B sector unit).


The documentation for this struct was generated from the following file: