11 #ifndef MERCURY_BULK_H
12 #define MERCURY_BULK_H
105 unsigned long flags,
unsigned int max_count,
void **buf_ptrs,
106 size_t *buf_sizes,
unsigned int *actual_count);
180 size_t origin_offset,
hg_bulk_t local_handle,
size_t local_offset,
HG_EXPORT hg_return_t HG_Bulk_init(na_class_t *na_class)
Initialize the Mercury bulk layer.
HG_EXPORT hg_return_t HG_Bulk_finalize(void)
Finalize the Mercury bulk layer.
HG_EXPORT hg_return_t HG_Bulk_handle_free(hg_bulk_t handle)
Free bulk handle.
HG_EXPORT size_t HG_Bulk_handle_get_size(hg_bulk_t handle)
Get total size of data abstracted by bulk handle.
HG_EXPORT hg_return_t HG_Bulk_handle_deserialize(hg_bulk_t *handle, const void *buf, size_t buf_size)
Deserialize bulk handle from a buffer.
HG_EXPORT hg_return_t HG_Bulk_transfer(hg_bulk_op_t op, na_addr_t origin_addr, hg_bulk_t origin_handle, size_t origin_offset, hg_bulk_t local_handle, size_t local_offset, size_t size, hg_bulk_request_t *request)
Transfer data to/from origin using abstract bulk handles.
HG_EXPORT size_t HG_Bulk_handle_get_serialize_size(hg_bulk_t handle)
Get size required to serialize bulk handle.
HG_EXPORT hg_return_t HG_Bulk_initialized(hg_bool_t *flag, na_class_t **na_class)
Indicate whether HG_Bulk_init has been called and return associated network class.
HG_EXPORT size_t HG_Bulk_handle_get_segment_count(hg_bulk_t handle)
Get total number of segments abstracted by bulk handle.
HG_EXPORT hg_return_t HG_Bulk_handle_create(size_t count, void **buf_ptrs, const size_t *buf_sizes, unsigned long flags, hg_bulk_t *handle)
Create abstract bulk handle from specified memory segments.
HG_EXPORT hg_return_t HG_Bulk_wait(hg_bulk_request_t request, unsigned int timeout, hg_status_t *status)
Wait for a bulk operation request to complete.
HG_EXPORT hg_return_t HG_Bulk_handle_access(hg_bulk_t handle, size_t offset, size_t size, unsigned long flags, unsigned int max_count, void **buf_ptrs, size_t *buf_sizes, unsigned int *actual_count)
Access bulk handle to retrieve memory segments abstracted by handle.
enum hg_return hg_return_t
HG_EXPORT hg_return_t HG_Bulk_handle_serialize(void *buf, size_t buf_size, hg_bulk_t handle)
Serialize bulk handle into a buffer.