4 #include "build_check.h"
9 * The API side NAL declarations
12 #include <portals/types.h>
18 typedef struct nal_t nal_t;
24 int (*startup) (nal_t *nal, ptl_pid_t requested_pid,
25 ptl_ni_limits_t *req, ptl_ni_limits_t *actual);
27 void (*shutdown) (nal_t *nal);
29 int (*forward) (nal_t *nal, int index, /* Function ID */
30 void *args, size_t arg_len, void *ret, size_t ret_len);
32 int (*yield) (nal_t *nal, unsigned long *flags, int milliseconds);
34 void (*lock) (nal_t *nal, unsigned long *flags);
36 void (*unlock) (nal_t *nal, unsigned long *flags);
39 extern nal_t *ptl_hndl2nal(ptl_handle_any_t * any);
42 extern int ptl_register_nal(ptl_interface_t interface, nal_t *nal);
43 extern void ptl_unregister_nal(ptl_interface_t interface);