Xenomai API  2.6.5
shm.h
1 #ifndef MMAN_H
2 #define MMAN_H
3 
4 #include <posix/registry.h> /* For associative lists. */
5 
6 #ifdef CONFIG_XENO_OPT_PERVASIVE
7 
8 typedef struct {
9  void *kaddr;
10  unsigned long len;
11  pse51_assoc_t assoc;
12 
13 #define assoc2umap(laddr) \
14  ((pse51_umap_t *)((unsigned long) (laddr) - offsetof(pse51_umap_t, assoc)))
15 } pse51_umap_t;
16 
17 int pse51_xnheap_get(xnheap_t **pheap, void *addr);
18 
19 void pse51_shm_ufds_cleanup(pse51_queues_t *q);
20 
21 void pse51_shm_umaps_cleanup(pse51_queues_t *q);
22 
23 #endif /* CONFIG_XENO_OPT_PERVASIVE */
24 
25 int pse51_shm_pkg_init(void);
26 
27 void pse51_shm_pkg_cleanup(void);
28 
29 #endif /* MMAN_H */