Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lnet / ulnds / socklnd / 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 #ifndef TCPNAL_PROCBRIDGE_H
10 #define TCPNAL_PROCBRIDGE_H
11
12 #include <portals/lib-p30.h>
13
14 typedef struct bridge {
15     int alive;
16     nal_cb_t *nal_cb;
17     void *lower;
18     void *local;
19     void (*shutdown)(struct bridge *);
20     /* this doesn't really belong here */
21     unsigned char iptop8;
22 } *bridge;
23
24
25 nal_t *bridge_init(ptl_interface_t nal,
26                    ptl_pid_t pid_request,
27                    ptl_ni_limits_t *desired,
28                    ptl_ni_limits_t *actual,
29                    int *rc);
30
31 typedef int (*nal_initialize)(bridge);
32 extern nal_initialize nal_table[PTL_IFACE_MAX];
33
34 #endif