2004-01-14 03:42:02 +00:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-03-26 14:15:20 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
2004-01-14 03:42:02 +00:00
|
|
|
#ifndef MCA_PML_BASE_FRAGMENT_H
|
|
|
|
#define MCA_PML_BASE_FRAGMENT_H
|
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
#include "class/ompi_list.h"
|
2004-03-17 18:45:16 +00:00
|
|
|
#include "mca/ptl/ptl.h"
|
2004-03-26 14:15:20 +00:00
|
|
|
#include "datatype/datatype.h"
|
2004-03-17 18:45:16 +00:00
|
|
|
#include "mca/ptl/base/ptl_base_header.h"
|
2004-01-14 03:42:02 +00:00
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-10-22 16:06:05 +00:00
|
|
|
OMPI_DECLSPEC extern ompi_class_t mca_ptl_base_frag_t_class;
|
2004-01-14 03:42:02 +00:00
|
|
|
|
2004-03-26 14:15:20 +00:00
|
|
|
/**
|
|
|
|
* Base type for fragment descriptors.
|
|
|
|
*/
|
2004-01-14 03:42:02 +00:00
|
|
|
struct mca_ptl_base_frag_t {
|
2004-06-07 15:33:53 +00:00
|
|
|
ompi_list_item_t super; /**< allow the fragment to be placed on a list */
|
2004-03-26 14:15:20 +00:00
|
|
|
mca_ptl_base_header_t frag_header; /**< header used for fragment matching */
|
2004-08-02 00:24:22 +00:00
|
|
|
struct mca_ptl_base_module_t* frag_owner; /**< PTL that allocated this fragment */
|
2004-02-05 00:50:37 +00:00
|
|
|
struct mca_ptl_base_peer_t* frag_peer; /**< PTL specific addressing info */
|
2004-03-26 14:15:20 +00:00
|
|
|
void *frag_addr; /**< pointer into request buffer at fragment offset */
|
|
|
|
size_t frag_size; /**< number of bytes available in request buffer */
|
2004-06-07 15:33:53 +00:00
|
|
|
ompi_convertor_t frag_convertor; /**< datatype convertor for fragment packing/unpacking */
|
2004-01-14 03:42:02 +00:00
|
|
|
};
|
|
|
|
typedef struct mca_ptl_base_frag_t mca_ptl_base_frag_t;
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-01-14 03:42:02 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|