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 _NFSD_CLD_H
     20 #define _NFSD_CLD_H
     21 #define CLD_UPCALL_VERSION 1
     22 #define NFS4_OPAQUE_LIMIT 1024
     23 enum cld_command {
     24   Cld_Create,
     25   Cld_Remove,
     26   Cld_Check,
     27   Cld_GraceDone,
     28 };
     29 struct cld_name {
     30   uint16_t cn_len;
     31   unsigned char cn_id[NFS4_OPAQUE_LIMIT];
     32 } __attribute__((packed));
     33 struct cld_msg {
     34   uint8_t cm_vers;
     35   uint8_t cm_cmd;
     36   int16_t cm_status;
     37   uint32_t cm_xid;
     38   union {
     39     int64_t cm_gracetime;
     40     struct cld_name cm_name;
     41   } __attribute__((packed)) cm_u;
     42 } __attribute__((packed));
     43 #endif
     44