Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:47:27

0001 /*
0002  * Copyright (c) 2022      Triad National Security, LLC. All rights reserved.
0003  * Copyright (c) 2022      Nanook Consulting.  All rights reserved.
0004  * $COPYRIGHT$
0005  *
0006  * Additional copyrights may follow
0007  *
0008  * $HEADER$
0009  */
0010 
0011 #ifndef PMIX_UTIL_VMEM_H
0012 #define PMIX_UTIL_VMEM_H
0013 
0014 #include "src/include/pmix_config.h"
0015 #include "include/pmix_common.h"
0016 
0017 typedef enum {
0018     VMEM_HOLE_NONE = -1,
0019     /** Use hole at the very beginning. */
0020     VMEM_HOLE_BEGIN = 0,
0021     /** Use hole right after the heap. */
0022     VMEM_HOLE_AFTER_HEAP = 1,
0023     /* Use hole right before stack. */
0024     VMEM_HOLE_BEFORE_STACK = 2,
0025     /* Use the biggest hole. */
0026     VMEM_HOLE_BIGGEST = 3,
0027     /* Use the biggest hole between heap and stack. */
0028     VMEM_HOLE_IN_LIBS = 4,
0029     /* Use given address, if available. */
0030     VMEM_HOLE_CUSTOM = 5
0031 } pmix_vmem_hole_kind_t;
0032 
0033 PMIX_EXPORT pmix_status_t
0034 pmix_vmem_find_hole(
0035     pmix_vmem_hole_kind_t hkind,
0036     size_t *addrp,
0037     size_t size
0038 );
0039 
0040 #endif