3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 /*
  27  * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  28  */
  29 
  30 /*
  31  *      Copyright (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32  *      All rights reserved.
  33  *      Use is subject to license terms.
  34  */
  35 
  36 
  37 #ifndef _NFS_DISPATCH_H
  38 #define _NFS_DISPATCH_H
  39 
  40 #ifdef  __cplusplus
  41 extern "C" {
  42 #endif
  43 
  44 /*
  45  * RPC dispatch table
  46  * Indexed by version, proc
  47  */
  48 
 
  57         void      (*dis_resfree)();     /* frees space allocated by proc */
  58         int       dis_flags;            /* flags, see below */
  59         void      *(*dis_getfh)();      /* returns the fhandle for the req */
  60 } rpcdisp_t;
  61 
  62 #define RPC_IDEMPOTENT  0x1     /* idempotent or not */
  63 /*
  64  * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
  65  * Right now, if this bit is on, we ignore the results of per NFS request
  66  * access control.
  67  */
  68 #define RPC_ALLOWANON   0x2     /* allow anonymous access */
  69 #define RPC_MAPRESP     0x4     /* use mapped response buffer */
  70 #define RPC_AVOIDWORK   0x8     /* do work avoidance for dups */
  71 #define RPC_PUBLICFH_OK 0x10    /* allow use of public filehandle */
  72 
  73 typedef struct rpc_disptable {
  74         int dis_nprocs;
  75         char **dis_procnames;
  76         kstat_named_t **dis_proccntp;
  77         struct rpcdisp *dis_table;
  78 } rpc_disptable_t;
  79 
  80 void    rpc_null(caddr_t *, caddr_t *, struct exportinfo *, struct svc_req *,
  81     cred_t *, bool_t);
  82 
  83 #ifdef  __cplusplus
  84 }
  85 #endif
  86 
  87 #endif /* _NFS_DISPATCH_H */
 | 
 
 
   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 
  26 /*
  27  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  28  * Use is subject to license terms.
  29  */
  30 
  31 /*
  32  *      Copyright (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  33  *      All rights reserved.
  34  *      Use is subject to license terms.
  35  */
  36 
  37 
  38 #ifndef _NFS_DISPATCH_H
  39 #define _NFS_DISPATCH_H
  40 
  41 #ifdef  __cplusplus
  42 extern "C" {
  43 #endif
  44 
  45 /*
  46  * RPC dispatch table
  47  * Indexed by version, proc
  48  */
  49 
 
  58         void      (*dis_resfree)();     /* frees space allocated by proc */
  59         int       dis_flags;            /* flags, see below */
  60         void      *(*dis_getfh)();      /* returns the fhandle for the req */
  61 } rpcdisp_t;
  62 
  63 #define RPC_IDEMPOTENT  0x1     /* idempotent or not */
  64 /*
  65  * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
  66  * Right now, if this bit is on, we ignore the results of per NFS request
  67  * access control.
  68  */
  69 #define RPC_ALLOWANON   0x2     /* allow anonymous access */
  70 #define RPC_MAPRESP     0x4     /* use mapped response buffer */
  71 #define RPC_AVOIDWORK   0x8     /* do work avoidance for dups */
  72 #define RPC_PUBLICFH_OK 0x10    /* allow use of public filehandle */
  73 
  74 typedef struct rpc_disptable {
  75         int dis_nprocs;
  76         char **dis_procnames;
  77         kstat_named_t **dis_proccntp;
  78         kstat_t ***dis_prociop;
  79         struct rpcdisp *dis_table;
  80 } rpc_disptable_t;
  81 
  82 void    rpc_null(caddr_t *, caddr_t *, struct exportinfo *, struct svc_req *,
  83     cred_t *, bool_t);
  84 
  85 #ifdef  __cplusplus
  86 }
  87 #endif
  88 
  89 #endif /* _NFS_DISPATCH_H */
 |