search for: dmu_map_data

Displaying 1 result from an estimated 1 matches for "dmu_map_data".

2006 Aug 21
1
[PATCH 3 of 6] dm-userspace internal libdmu support for userspace tool
...ta { + void *status_user_data; + void *map_user_data; +}; + +struct dmu_context { + int fd; + unsigned int buf_size; + unsigned int in_ptr; + unsigned int out_ptr; + uint8_t *in_buf; + uint8_t *out_buf; + uint32_t id_ctr; + struct dmu_events events; + struct dmu_event_data event_data; +}; + +struct dmu_map_data { + uint64_t block; + int64_t offset; + uint32_t id; + uint32_t flags; + dev_t dest_dev; + dev_t copy_src_dev; +}; + +void dmu_map_set_block(struct dmu_map_data *data, uint64_t block) +{ + data->block = block; +} + +uint64_t dmu_map_get_block(struct dmu_map_data *data) +{ + return data->block...