shm implemented as memfd syscall
zhangmeng
2023-07-27 157b3411dd123694ca29dd80fe9ecc683958ccab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _memfd_shm_h_
#define _memfd_shm_h_
 
#ifdef __cplusplus
extern "C" {
#endif
 
int basic_shm_create(const char *name, int len);
 
int basic_shm_mmap(int fd, unsigned char** ppaddr);
int basic_shm_unmmap(int fd, unsigned char** ppaddr);
int basic_shm_close(int fd);
 
 
#ifdef __cplusplus
}
#endif
 
#endif