19typedef enum : uint16_t {
@ k_cb_host_path_capacity
Bounded host path copy.
cb_io_status_t cb_host_source_open(const char *path, cb_host_source_t *binding, cb_source_t *source)
Open a captured-trace path and publish its source seam.
cb_io_status_t cb_host_scratch_close(cb_host_scratch_t *binding)
Close the scratch transaction.
cb_io_status_t cb_host_scratch_open(cb_host_scratch_t *binding, cb_scratch_t *scratch)
Create an unlinked raw-descriptor scratch transaction.
void cb_host_output_abort(cb_host_output_t *binding)
Abandon a temporary sibling while preserving the destination.
void cb_host_standard_sinks(cb_sink_t *output, cb_sink_t *error)
Bind the process standard-output and standard-error descriptor sinks.
cb_io_status_t cb_host_output_open(const char *path, cb_host_output_t *binding, cb_sink_t *sink)
Open a sibling output transaction, or bind descriptor one for NULL.
cb_io_status_t cb_host_output_commit(cb_host_output_t *binding)
Flush and atomically publish a transactional output.
cb_io_status_t cb_host_source_close(cb_host_source_t *binding)
Close a source binding.
Bounded byte-source and text-sink seams for cache_bench.
cb_io_status_t
Status returned by tool-local injected I/O callbacks.
Output transaction or borrowed standard descriptor.
bool transactional
True when temporary sibling is live.
int dir_fd
Parent descriptor for durable rename.
char temporary[k_cb_host_path_capacity]
Sibling temporary path.
int fd
Writable descriptor.
char destination[k_cb_host_path_capacity]
Final path.
Unlinked raw-descriptor scratch binding.
int fd
Open temporary descriptor.
Borrowed raw descriptor source binding.
int fd
Open read-only descriptor.
uint64_t size
Size snapshot.
Injected bounded random-access scratch transaction.
Immutable injected byte source with a snapshotted length.