1 /*
2  * Copyright (c) 2006-2020, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2019-10-12     Jesven       first version
9  */
10 #ifndef  __LWP_SHM_H__
11 #define  __LWP_SHM_H__
12 
13 #include <lwp_avl.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 int lwp_shmget(size_t key, size_t size, int create);
20 int lwp_shmrm(int id);
21 void* lwp_shmat(int id, void* shm_vaddr);
22 int lwp_shmdt(void* shm_vaddr);
23 void *lwp_shminfo(int id);
24 int lwp_shm_ref_inc(struct rt_lwp *lwp, void *shm_vaddr);
25 int lwp_shm_ref_dec(struct rt_lwp *lwp, void *shm_vaddr);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif  /*__LWP_SHM_H__*/
32