Whamcloud - gitweb
- merge 0.7rc1 from b_devel to HEAD (20030612 merge point)
[fs/lustre-release.git] / lnet / ulnds / socklnd / procbridge.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *  Copyright (c) 2002 Cray Inc.
5  *
6  *   This file is part of Portals, http://www.sf.net/projects/sandiaportals/
7  */
8
9 #ifndef _PROCBRIDGE_H_
10 #define _PROCBRIDGE_H_
11
12 #include <pthread.h>
13 #include <bridge.h>
14 #include <ipmap.h>
15
16
17 typedef struct procbridge {
18     pthread_t t;
19     pthread_cond_t cond;
20     pthread_mutex_t mutex;
21     int to_lib[2];
22     int from_lib[2];
23 } *procbridge;
24
25 extern void *nal_thread(void *);
26
27
28 #define PTL_INIT        (LIB_MAX_DISPATCH+1)
29 #define PTL_FINI        (LIB_MAX_DISPATCH+2)
30
31 #define MAX_ACLS        1
32 #define MAX_PTLS        128
33
34 extern void set_address(bridge t,ptl_pid_t pidrequest);
35 extern nal_t *procbridge_interface(int num_interface,
36                             ptl_pt_index_t ptl_size,
37                             ptl_ac_index_t acl_size,
38                             ptl_pid_t requested_pid);
39
40 #endif