Home | History | Annotate | Download | only in nfsd
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef LINUX_NFSD_H
     20 #define LINUX_NFSD_H
     21 #include <linux/fs.h>
     22 #include <linux/vfs.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <linux/nfs.h>
     25 struct nfsd_fhandle {
     26  struct svc_fh fh;
     27 };
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 struct nfsd_sattrargs {
     30  struct svc_fh fh;
     31  struct iattr attrs;
     32 };
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 struct nfsd_diropargs {
     35  struct svc_fh fh;
     36  char * name;
     37  int len;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 };
     40 struct nfsd_readargs {
     41  struct svc_fh fh;
     42  __u32 offset;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  __u32 count;
     45  struct kvec vec[RPCSVC_MAXPAGES];
     46  int vlen;
     47 };
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 struct nfsd_writeargs {
     50  svc_fh fh;
     51  __u32 offset;
     52  int len;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  struct kvec vec[RPCSVC_MAXPAGES];
     55  int vlen;
     56 };
     57 struct nfsd_createargs {
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  struct svc_fh fh;
     60  char * name;
     61  int len;
     62  struct iattr attrs;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 };
     65 struct nfsd_renameargs {
     66  struct svc_fh ffh;
     67  char * fname;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  int flen;
     70  struct svc_fh tfh;
     71  char * tname;
     72  int tlen;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 };
     75 struct nfsd_readlinkargs {
     76  struct svc_fh fh;
     77  char * buffer;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 };
     80 struct nfsd_linkargs {
     81  struct svc_fh ffh;
     82  struct svc_fh tfh;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  char * tname;
     85  int tlen;
     86 };
     87 struct nfsd_symlinkargs {
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  struct svc_fh ffh;
     90  char * fname;
     91  int flen;
     92  char * tname;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  int tlen;
     95  struct iattr attrs;
     96 };
     97 struct nfsd_readdirargs {
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  struct svc_fh fh;
    100  __u32 cookie;
    101  __u32 count;
    102  u32 * buffer;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 };
    105 struct nfsd_attrstat {
    106  struct svc_fh fh;
    107  struct kstat stat;
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 };
    110 struct nfsd_diropres {
    111  struct svc_fh fh;
    112  struct kstat stat;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 };
    115 struct nfsd_readlinkres {
    116  int len;
    117 };
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 struct nfsd_readres {
    120  struct svc_fh fh;
    121  unsigned long count;
    122  struct kstat stat;
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 };
    125 struct nfsd_readdirres {
    126  int count;
    127  struct readdir_cd common;
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129  u32 * buffer;
    130  int buflen;
    131  u32 * offset;
    132 };
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 struct nfsd_statfsres {
    135  struct kstatfs stats;
    136 };
    137 union nfsd_xdrstore {
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139  struct nfsd_sattrargs sattr;
    140  struct nfsd_diropargs dirop;
    141  struct nfsd_readargs read;
    142  struct nfsd_writeargs write;
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144  struct nfsd_createargs create;
    145  struct nfsd_renameargs rename;
    146  struct nfsd_linkargs link;
    147  struct nfsd_symlinkargs symlink;
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149  struct nfsd_readdirargs readdir;
    150 };
    151 #define NFS2_SVC_XDRSIZE sizeof(union nfsd_xdrstore)
    152 #endif
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154