HDF5
1.12.0
hdf5-1.12.0
src
H5MPprivate.h
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
* Copyright by The HDF Group. *
3
* Copyright by the Board of Trustees of the University of Illinois. *
4
* All rights reserved. *
5
* *
6
* This file is part of HDF5. The full HDF5 copyright notice, including *
7
* terms governing use, modification, and redistribution, is contained in *
8
* the COPYING file, which can be found at the root of the source code *
9
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
10
* If you do not have access to either file, you may request a copy from *
11
* help@hdfgroup.org. *
12
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13
14
/*-------------------------------------------------------------------------
15
*
16
* Created: H5MPprivate.h
17
* May 2 2005
18
* Quincey Koziol <koziol@ncsa.uiuc.edu>
19
*
20
* Purpose: Private header for memory pool routines.
21
*
22
*-------------------------------------------------------------------------
23
*/
24
25
#ifndef _H5MPprivate_H
26
#define _H5MPprivate_H
27
28
/* Include package's public header (not yet) */
29
/* #include "H5MPpublic.h" */
30
31
/* Private headers needed by this file */
32
33
34
/**************************/
35
/* Library Private Macros */
36
/**************************/
37
38
/* Pool creation flags */
39
/* Default settings */
40
#define H5MP_FLG_DEFAULT 0
41
#define H5MP_PAGE_SIZE_DEFAULT 4096
/* (bytes) */
42
43
44
/****************************/
45
/* Library Private Typedefs */
46
/****************************/
47
48
/* Memory pool header (defined in H5MPpkg.c) */
49
typedef
struct
H5MP_pool_t
H5MP_pool_t
;
50
51
52
/***************************************/
53
/* Library-private Function Prototypes */
54
/***************************************/
55
H5_DLL
H5MP_pool_t
*
H5MP_create
(
size_t
page_size
,
unsigned
flags
);
56
H5_DLL
void
*
H5MP_malloc
(
H5MP_pool_t
*mp,
size_t
request);
57
H5_DLL
void
*
H5MP_free
(
H5MP_pool_t
*mp,
void
*spc);
58
H5_DLL
herr_t
H5MP_close
(
H5MP_pool_t
*mp);
59
60
#endif
/* _H5MPprivate_H */
H5MP_close
H5_DLL herr_t H5MP_close(H5MP_pool_t *mp)
Definition:
H5MP.c:438
H5MP_pool_t::flags
unsigned flags
Definition:
H5MPpkg.h:83
H5MP_pool_t
Definition:
H5MPpkg.h:77
H5MP_malloc
H5_DLL void * H5MP_malloc(H5MP_pool_t *mp, size_t request)
Definition:
H5MP.c:211
H5_DLL
#define H5_DLL
Definition:
H5api_adpt.h:234
H5MP_pool_t::page_size
size_t page_size
Definition:
H5MPpkg.h:79
H5MP_free
H5_DLL void * H5MP_free(H5MP_pool_t *mp, void *spc)
Definition:
H5MP.c:351
H5MP_create
H5_DLL H5MP_pool_t * H5MP_create(size_t page_size, unsigned flags)
Definition:
H5MP.c:91
herr_t
int herr_t
Definition:
H5public.h:128
Generated by
1.8.18