Xenomai API  2.6.5
ppd.h
Go to the documentation of this file.
1 
21 #ifndef _XENO_NUCLEUS_PPD_H
22 #define _XENO_NUCLEUS_PPD_H
23 
24 #include <nucleus/queue.h>
25 #include <nucleus/shadow.h>
26 
27 struct mm_struct;
28 
29 typedef struct xnshadow_ppd_key {
30  unsigned long muxid;
31  struct mm_struct *mm;
32 } xnshadow_ppd_key_t;
33 
34 typedef struct xnshadow_ppd_t {
35  xnshadow_ppd_key_t key;
36  xnholder_t link;
37 #define link2ppd(ln) container_of(ln, xnshadow_ppd_t, link)
38 } xnshadow_ppd_t;
39 
40 #define xnshadow_ppd_muxid(ppd) ((ppd)->key.muxid)
41 
42 #define xnshadow_ppd_mm(ppd) ((ppd)->key.mm)
43 
44 /* Call with nklock locked irqs off. */
45 xnshadow_ppd_t *xnshadow_ppd_get(unsigned muxid);
46 
47 #endif /* _XENO_NUCLEUS_PPD_H */
xnshadow_ppd_t * xnshadow_ppd_get(unsigned muxid)
Return the per-process data attached to the calling process.
Definition: shadow.c:3014