/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * * This file is part of Lustre, http://www.lustre.org. * * Lustre is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * Lustre is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Lustre; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _LONAL_H #define _LONAL_H #ifndef EXPORT_SYMTAB # define EXPORT_SYMTAB #endif #include #include #include #include #include #include #include #include #include #define DEBUG_SUBSYSTEM S_NAL #include #include #include #include #define KLOD_IOV 153401 #define KLOD_KIOV 153402 typedef struct { unsigned int klod_type; unsigned int klod_niov; size_t klod_offset; size_t klod_nob; union { struct iovec *iov; ptl_kiov_t *kiov; } klod_iov; } klo_desc_t; typedef struct { char klo_init; /* what's been initialised */ } klonal_data_t; /* kqn_init state */ #define KLO_INIT_NOTHING 0 /* MUST BE ZERO so zeroed state is initialised OK */ #define KLO_INIT_LIB 1 #define KLO_INIT_ALL 2 extern lib_nal_t klonal_lib; extern nal_t klonal_api; extern klonal_data_t klonal_data; #endif /* _LONAL_H */