1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2002 Cluster File Systems, Inc.
6 * This file is part of Lustre, http://www.lustre.org.
8 * Lustre is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * Lustre is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Lustre; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include <linux/kp30.h>
27 #include <portals/p30.h>
28 #include <linux/lustre_idl.h>
35 ptl_handle_ni_t peer_ni;
39 struct ptlrpc_service {
41 void (* srv_callback)(ptl_event_t *, void *data);
42 __u32 srv_ring_length;
46 struct ptlrpc_request {
47 struct list_head rq_list;
48 struct mds_obd *rq_obd;
49 struct ost_obd *rq_ost;
54 struct ptlreq_hdr *rq_reqhdr;
59 struct ptlrep_hdr *rq_rephdr;
62 void * rq_reply_handle;
63 wait_queue_head_t rq_wait_for_rep;
67 __u32 rq_reply_portal;
72 int ptl_send_rpc(struct ptlrpc_request *request, struct lustre_peer *peer);
76 # define LUSTRE_NAL "ksocknal"
78 # define LUSTRE_NAL "kqswnal"