11 #include <libzbd/zbd.h>
void * d_private
Definition: device.h:168
ssize_t zone_write(struct device *, struct device_request *)
write to the zoned block device
Definition: zone.c:173
generic device address format
Definition: device.h:95
int zone_open(struct device *, const char *name, int flags)
open the zoned block deivce file
Definition: zone.c:32
int zone_device_exit(struct device *)
deallocate the device module
Definition: zone.c:433
ssize_t zone_read(struct device *, struct device_request *)
read to the zoned block device
Definition: zone.c:256
metadata of the device
Definition: device.h:163
int zone_erase(struct device *, struct device_request *)
erase the segment to the zoned block device
Definition: zone.c:316
int zone_close(struct device *)
close the zoned block device
Definition: zone.c:354
int zone_device_init(struct device *, uint64_t flags)
initialize the device module
Definition: zone.c:399
static uint64_t zone_get_zone_number(struct device *dev, struct device_address paddr)
Definition: zone.h:49
uint32_t lpn
Definition: device.h:103
containing a zone file's metadata
Definition: zone.h:18
struct device * dev
Definition: ramdisk-test.c:10
contain the device information header
static size_t device_get_page_size(struct device *dev)
get flash board's NAND page size
Definition: device.h:232
int fd
Definition: zone.h:19
request for device
Definition: device.h:110