Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lnet / ulnds / bridge.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 #include <portals/lib-p30.h>
10
11 typedef struct bridge {
12     int alive;
13     nal_cb_t *nal_cb;
14     void *lower;
15     void *local;
16     void (*shutdown)(struct bridge *);
17     /* this doesn't really belong here */
18     unsigned char iptop8;
19 } *bridge;
20
21
22 nal_t *bridge_init(ptl_interface_t nal,
23                    ptl_pid_t pid_request,
24                    ptl_ni_limits_t *desired,
25                    ptl_ni_limits_t *actual,
26                    int *rc);
27
28 typedef int (*nal_initialize)(bridge);
29 extern nal_initialize nal_table[PTL_IFACE_MAX];