Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / export / export.h
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 /*
11 * export.h - definitions for the EXPORT kernel extension
12 */
13
14 /*
15 * EXPORT kernel extension configuration parameters
16 */
17 struct k_conf {
18 u_int nsyms; /* # of symbols */
19 u_int symt_sz; /* size of symbol table */
20 u_int str_sz; /* size of string table */
21 caddr_t symtab; /* user address of symtab */
22 caddr_t strtab; /* user address of string table */
23 };
24
25 /*
26 * kernel function import
27 */
28 struct k_func {
29 void *(**fpp) (); /* ^ to ^ to function we import */
30 char *name; /* ^ to symbol name */
31 #if defined(__XCOFF64__) || defined(AFS_64BIT_KERNEL)
32 u_int64 fdesc[3]; /* function descriptor storage */
33 #else
34 u_int fdesc[3]; /* function descriptor storage */
35 #endif
36 };
37
38 /*
39 * kernel variable import
40 */
41 struct k_var {
42 void *varp; /* ^ to surrogate variable */
43 char *name; /* ^ to symbol name */
44 };