1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2001 Cluster File Systems, Inc. <braam@clusterfs.com>
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.
21 * Basic library routines.
28 # define EXPORT_SYMTAB
31 #include <linux/config.h>
32 #include <linux/module.h>
33 #include <linux/kernel.h>
35 #include <linux/string.h>
36 #include <linux/stat.h>
37 #include <linux/errno.h>
38 #include <linux/uio.h>
40 #define DEBUG_SUBSYSTEM S_LONAL
42 #include <linux/kp30.h>
43 #include <portals/p30.h>
44 #include <portals/lib-p30.h>
45 #include <portals/nal.h>
47 #define KLOD_IOV 153401
48 #define KLOD_KIOV 153402
52 unsigned int klod_type;
53 unsigned int klod_niov;
65 char klo_init; /* what's been initialised */
69 #define KLO_INIT_NOTHING 0 /* MUST BE ZERO so zeroed state is initialised OK */
70 #define KLO_INIT_LIB 1
71 #define KLO_INIT_ALL 2
73 extern lib_nal_t klonal_lib;
74 extern nal_t klonal_api;
75 extern klonal_data_t klonal_data;