1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This file is part of Lustre, http://www.lustre.org.
6 * Lustre is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU General Public
8 * License as published by the Free Software Foundation.
10 * Lustre is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with Lustre; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 # define EXPORT_SYMTAB
26 #include <linux/config.h>
27 #include <linux/module.h>
28 #include <linux/kernel.h>
30 #include <linux/string.h>
31 #include <linux/stat.h>
32 #include <linux/errno.h>
33 #include <linux/uio.h>
34 #include <linux/init.h>
36 #define DEBUG_SUBSYSTEM S_NAL
38 #include <libcfs/kp30.h>
39 #include <portals/p30.h>
40 #include <portals/lib-p30.h>
41 #include <portals/nal.h>
43 #define KLOD_IOV 153401
44 #define KLOD_KIOV 153402
48 unsigned int klod_type;
49 unsigned int klod_niov;
60 char klo_init; /* what's been initialised */
64 #define KLO_INIT_NOTHING 0 /* MUST BE ZERO so zeroed state is initialised OK */
65 #define KLO_INIT_LIB 1
66 #define KLO_INIT_ALL 2
68 extern lib_nal_t klonal_lib;
69 extern nal_t klonal_api;
70 extern klonal_data_t klonal_data;