home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / include / pvfs2-request.h < prev    next >
C/C++ Source or Header  |  2005-11-04  |  2KB  |  78 lines

  1.  
  2. /*
  3.  * (C) 2002 Clemson University and The University of Chicago.
  4.  *
  5.  * See COPYING in top-level directory.
  6.  */
  7.  
  8. #ifndef __PVFS2_REQUEST_H
  9. #define __PVFS2_REQUEST_H
  10.  
  11. #include <pvfs2-types.h>
  12.  
  13. #define PVFS_BOTTOM NULL
  14.  
  15. typedef struct PINT_Request *PVFS_Request;
  16.  
  17. int PVFS_Request_contiguous(int32_t count, PVFS_Request oldreq,
  18.               PVFS_Request *newreq);
  19.  
  20. int PVFS_Request_vector(int32_t count, int32_t blocklength,
  21.         PVFS_size stride, PVFS_Request oldreq, PVFS_Request *newreq);
  22.  
  23. int PVFS_Request_hvector(int32_t count, int32_t blocklength,
  24.         PVFS_size stride, PVFS_Request oldreq, PVFS_Request *newreq);
  25.  
  26. int PVFS_Request_indexed(int32_t count, int32_t *blocklengths,
  27.               PVFS_size *displacements, PVFS_Request oldreq, PVFS_Request *newreq);
  28.  
  29. int PVFS_Request_hindexed(int32_t count, int32_t *blocklengths,
  30.         PVFS_size *displacements, PVFS_Request oldreq, PVFS_Request *newreq);
  31.  
  32. int PVFS_Request_struct(int32_t count, int32_t *blocklengths,
  33.         PVFS_size *displacements, PVFS_Request *oldreqs, PVFS_Request *newreq);
  34.  
  35. int PVFS_Request_resized(PVFS_Request oldreq, PVFS_offset lb,
  36.                 PVFS_size extent, PVFS_Request *newreq);
  37.  
  38. int PVFS_Address(void* location, PVFS_offset *address);
  39.  
  40. int PVFS_Request_extent(PVFS_Request request, PVFS_size *extent);
  41.  
  42. int PVFS_Request_size(PVFS_Request request, PVFS_size *size);
  43.  
  44. int PVFS_Request_lb(PVFS_Request request, PVFS_size *displacement);
  45.  
  46. int PVFS_Request_ub(PVFS_Request request, PVFS_size *displacement);
  47.  
  48. int PVFS_Request_commit(PVFS_Request *reqp);
  49.  
  50. int PVFS_Request_free(PVFS_Request *reqp);
  51.  
  52. /* pre-defined request types */
  53. extern PVFS_Request PVFS_CHAR;
  54. extern PVFS_Request PVFS_SHORT;
  55. extern PVFS_Request PVFS_INT;
  56. extern PVFS_Request PVFS_LONG;
  57. extern PVFS_Request PVFS_UNSIGNED_CHAR;
  58. extern PVFS_Request PVFS_UNSIGNED_SHORT;
  59. extern PVFS_Request PVFS_UNSIGNED;
  60. extern PVFS_Request PVFS_UNSIGNED_INT;
  61. extern PVFS_Request PVFS_UNSIGNED_LONG;
  62. extern PVFS_Request PVFS_FLOAT;
  63. extern PVFS_Request PVFS_DOUBLE;
  64. extern PVFS_Request PVFS_LONG_DOUBLE;
  65. extern PVFS_Request PVFS_BYTE;
  66. extern PVFS_Request PVFS_PACKED;
  67.  
  68. #endif /* __PVFS2_REQUEST_H */
  69.  
  70. /*
  71.  * Local variables:
  72.  *  c-indent-level: 4
  73.  *  c-basic-offset: 4
  74.  * End:
  75.  *
  76.  * vim: ts=8 sts=4 sw=4 expandtab
  77.  */
  78.