1 #ifndef _P30_INTERNAL_H_
2 #define _P30_INTERNAL_H_
4 #include "build_check.h"
8 * Internals for the API level library that are not needed
9 * by the user application
12 #include <portals/p30.h>
14 extern int ptl_init; /* Has the library been initialized */
16 extern int ptl_ni_init(void);
17 extern void ptl_ni_fini(void);
19 static inline ptl_eq_t *
20 ptl_handle2usereq (ptl_handle_eq_t *handle)
22 /* EQ handles are a little wierd. On the "user" side, the cookie
23 * is just a pointer to a queue of events in shared memory. It's
24 * cb_eq_handle is the "real" handle which we pass when we
25 * call do_forward(). */
26 return (ptl_eq_t *)((unsigned long)handle->cookie);