geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
geopm_shmem.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef GEOPM_SHMEM_H_INCLUDE
7 #define GEOPM_SHMEM_H_INCLUDE
8 
9 #include "geopm_public.h"
10 
11 #ifdef __cplusplus
12 #include <string>
13 
14 namespace geopm
15 {
16  std::string GEOPM_PUBLIC
17  shmem_path_prof(const std::string &shm_key, int pid, int uid);
18  void GEOPM_PUBLIC
19  shmem_create_prof(const std::string &shm_key, size_t size, int pid, int uid, int gid);
20 }
21 
22 extern "C" {
23 #endif
24 
25 int GEOPM_PUBLIC
26  geopm_shmem_path_prof(const char *shm_key, int pid, int uid,
27  size_t shm_path_max, char *shm_path);
28 int GEOPM_PUBLIC
29  geopm_shmem_create_prof(const char *shm_key, size_t size, int pid, int uid, int gid);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 #endif
#define GEOPM_PUBLIC
Definition: geopm_public.h:10
int GEOPM_PUBLIC geopm_shmem_create_prof(const char *shm_key, size_t size, int pid, int uid, int gid)
Definition: geopm_shmem.cpp:37
int GEOPM_PUBLIC geopm_shmem_path_prof(const char *shm_key, int pid, int uid, size_t shm_path_max, char *shm_path)
Definition: geopm_shmem.cpp:50
Definition: Agg.cpp:20
void shmem_create_prof(const std::string &shm_key, size_t size, int pid, int uid, int gid)
Definition: geopm_shmem.cpp:29
std::string shmem_path_prof(const std::string &shm_key, int pid, int uid)
Definition: geopm_shmem.cpp:17