2004-06-03 22:13:01 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-06-03 22:13:01 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_PTL_SM_SEND_REQUEST_H
|
|
|
|
#define MCA_PTL_SM_SEND_REQUEST_H
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2004-06-07 15:33:53 +00:00
|
|
|
#include "ompi_config.h"
|
2005-05-09 19:37:10 +00:00
|
|
|
#include "mca/ptl/base/ptl_base_sendreq.h"
|
2004-09-03 22:34:52 +00:00
|
|
|
#include "ptl_sm_frag.h"
|
2004-06-03 22:13:01 +00:00
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-06-03 22:13:01 +00:00
|
|
|
OBJ_CLASS_DECLARATION(mca_ptl_sm_send_request_t);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2004-09-03 22:34:52 +00:00
|
|
|
* Shared Memory (SM) send request derived type. The send request contains
|
|
|
|
* both base send request, and a pointer to the first fragment descriptor.
|
2004-06-03 22:13:01 +00:00
|
|
|
*/
|
|
|
|
struct mca_ptl_sm_send_request_t {
|
2004-09-03 22:34:52 +00:00
|
|
|
|
|
|
|
/* base send descriptor */
|
2005-05-09 19:37:10 +00:00
|
|
|
mca_ptl_base_send_request_t super;
|
2004-09-03 22:34:52 +00:00
|
|
|
|
|
|
|
/* pointer to first fragment descriptor */
|
|
|
|
mca_ptl_sm_frag_t *req_frag;
|
2004-06-03 22:13:01 +00:00
|
|
|
};
|
|
|
|
typedef struct mca_ptl_sm_send_request_t mca_ptl_sm_send_request_t;
|
|
|
|
|
2004-09-13 13:52:43 +00:00
|
|
|
/**
|
2004-09-13 15:24:34 +00:00
|
|
|
* initializtion function to be called when a new shared
|
|
|
|
* memory send request is initialized.
|
2004-09-13 13:52:43 +00:00
|
|
|
*/
|
2004-09-13 15:24:34 +00:00
|
|
|
int mca_ptl_sm_send_request_init(struct mca_ptl_base_module_t* ptl,
|
2005-05-09 19:37:10 +00:00
|
|
|
struct mca_ptl_base_send_request_t* request);
|
2004-06-03 22:13:01 +00:00
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-06-03 22:13:01 +00:00
|
|
|
#endif
|
|
|
|
|