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 / test / io / bmi / bench-mem.h < prev    next >
C/C++ Source or Header  |  2009-08-14  |  1KB  |  59 lines

  1. /*
  2.  * (C) 2001 Clemson University and The University of Chicago
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <unistd.h>
  10. #include <errno.h>
  11. #include <math.h>
  12. #include <mpi.h>
  13. #include "pvfs2.h"
  14. #include "bmi.h"
  15.  
  16. #ifndef __BENCH_MEM_H
  17. #define __BENCH_MEM_H
  18.  
  19. struct mem_buffers
  20. {
  21.     void **buffers;
  22.     int num_buffers;
  23.     int size;
  24. };
  25.  
  26. int alloc_buffers(
  27.     struct mem_buffers *bufs,
  28.     int num_buffers,
  29.     int size);
  30. int BMI_alloc_buffers(
  31.     struct mem_buffers *bufs,
  32.     int num_buffers,
  33.     int size,
  34.     PVFS_BMI_addr_t addr,
  35.     enum bmi_op_type send_recv);
  36.  
  37. int free_buffers(
  38.     struct mem_buffers *bufs);
  39. int BMI_free_buffers(
  40.     struct mem_buffers *bufs,
  41.     PVFS_BMI_addr_t addr,
  42.     enum bmi_op_type send_recv);
  43.  
  44. int mark_buffers(
  45.     struct mem_buffers *bufs);
  46. int check_buffers(
  47.     struct mem_buffers *bufs);
  48.  
  49. #endif /* __BENCH_MEM_H */
  50.  
  51. /*
  52.  * Local variables:
  53.  *  c-indent-level: 4
  54.  *  c-basic-offset: 4
  55.  * End:
  56.  *
  57.  * vim: ts=8 sts=4 sw=4 expandtab
  58.  */
  59.