Changeset View
Changeset View
Standalone View
Standalone View
sys/xen/interface/hypfs.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
#define XEN_HYPFS_TYPE_BOOL 5 | #define XEN_HYPFS_TYPE_BOOL 5 | ||||
uint8_t encoding; | uint8_t encoding; | ||||
#define XEN_HYPFS_ENC_PLAIN 0 | #define XEN_HYPFS_ENC_PLAIN 0 | ||||
#define XEN_HYPFS_ENC_GZIP 1 | #define XEN_HYPFS_ENC_GZIP 1 | ||||
uint16_t pad; /* Returned as 0. */ | uint16_t pad; /* Returned as 0. */ | ||||
uint32_t content_len; /* Current length of data. */ | uint32_t content_len; /* Current length of data. */ | ||||
uint32_t max_write_len; /* Max. length for writes (0 if read-only). */ | uint32_t max_write_len; /* Max. length for writes (0 if read-only). */ | ||||
}; | }; | ||||
typedef struct xen_hypfs_direntry xen_hypfs_direntry_t; | |||||
struct xen_hypfs_dirlistentry { | struct xen_hypfs_dirlistentry { | ||||
struct xen_hypfs_direntry e; | xen_hypfs_direntry_t e; | ||||
/* Offset in bytes to next entry (0 == this is the last entry). */ | /* Offset in bytes to next entry (0 == this is the last entry). */ | ||||
uint16_t off_next; | uint16_t off_next; | ||||
/* Zero terminated entry name, possibly with some padding for alignment. */ | /* Zero terminated entry name, possibly with some padding for alignment. */ | ||||
char name[XEN_FLEX_ARRAY_DIM]; | char name[XEN_FLEX_ARRAY_DIM]; | ||||
}; | }; | ||||
/* | /* | ||||
* Hypercall operations. | * Hypercall operations. | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |