aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_shm_internal.h
blob: 8bd105d9fd181ce3c926b89db57cd5ab872eca15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright (c) 2013, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#ifndef ODP_SHM_INTERNAL_H_
#define ODP_SHM_INTERNAL_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <odp/api/shared_memory.h>

#define SHM_DEVNAME_MAXLEN (ODP_SHM_NAME_LEN + 16)
#define SHM_DEVNAME_FORMAT "/odp-%d-%s" /* /dev/shm/odp-<pid>-<name> */

#define _ODP_SHM_PROC_NOCREAT 0x40  /**< Do not create shm if not exist */
#define _ODP_SHM_O_EXCL	      0x80  /**< Do not create shm if exist */

#ifdef __cplusplus
}
#endif

#endif