source: gpfs_3.1_ker2.6.20/lpp/mmfs/src/ibm-linux/cxiMmap-plat.h @ 195

Last change on this file since 195 was 16, checked in by rock, 17 years ago
File size: 2.7 KB
Line 
1/***************************************************************************
2 *
3 * Copyright (C) 2001 International Business Machines
4 * All rights reserved.
5 *
6 * This file is part of the GPFS mmfslinux kernel module.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 *  1. Redistributions of source code must retain the above copyright notice,
13 *     this list of conditions and the following disclaimer.
14 *  2. Redistributions in binary form must reproduce the above copyright
15 *     notice, this list of conditions and the following disclaimer in the
16 *     documentation and/or other materials provided with the distribution.
17 *  3. The name of the author may not be used to endorse or promote products
18 *     derived from this software without specific prior written
19 *     permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *************************************************************************** */
33/* @(#)02       1.22  src/avs/fs/mmfs/ts/kernext/ibm-linux/cxiMmap-plat.h, mmfs, avs_rgpfs24, rgpfs240610b 6/2/03 13:01:17 */
34/*
35 * Platform specific definitions for memory mapped files, Linux version
36 *
37 */
38
39#ifndef _h_cxiMmap_plat
40#define _h_cxiMmap_plat
41
42#ifndef _h_cxiMmap
43#error Platform header (XXX-plat.h) should not be included directly
44#endif
45
46#include <cxiTypes.h>
47
48#ifdef __cplusplus
49extern "C"
50{
51#endif /*__cplusplus */
52Int64 getFilePos(cxibuf_t *bufP);
53char *VM_Attach(cxibuf_t *bufP);
54void VM_Detach(cxibuf_t *bufP, char *baddrP);
55void getVp(void * gnP,void **vP, struct gpfsVfsData_t **privVfsP);
56void IoDone(cxibuf_t *bufP);
57void mmapKill();
58void EnableMmap();
59#define mmStrategy NULL
60int cxiMmapRegister(void *dummy);
61int cxiMmapUnregister(void *dummy);
62int cxiMmapFlush(cxiNode_t *cnP, UInt64 start, UInt64 end,
63                 enum CmflushOption cmopt);
64int cxiMmapGetPage(cxibuf_t *bufP);
65void cxiMmapReleasePage(struct page *pageP);
66#ifdef __cplusplus
67}
68#endif /*__cplusplus */
69
70#endif  /* _h_cxiMmap_plat */
Note: See TracBrowser for help on using the repository browser.