home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / nfs / nfs_meas.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  1KB  |  43 lines

  1. /* 
  2.  * Copyright (c) 1989 NeXT, Inc.
  3.  *
  4.  * HISTORY
  5.  *  15-Sep-89  Morris Meyer (mmeyer) at NeXT
  6.  *    Created.
  7.  */
  8. #ifndef    _NFS_MEAS_
  9. #define _NFS_MEAS_
  10.  
  11. struct nfstimestat {
  12.     u_int us_enter;            /* eventc value of last entry    */
  13.     u_int xid;            /* transaction id;          */
  14.     u_int nfsop;            /* nfs operation for this stat     */
  15. };
  16.  
  17. struct nfsdatastat {
  18.     u_int calls;            /* count of the valid rfscalls() */
  19.     u_int us_max;            /* max duration in rfscall()     */
  20.     u_int us_total;            /* total duration in rfscall()   */
  21. };    
  22.  
  23. #define NNFSOPS 32             /* ?? */
  24. #define    NNFS    64
  25.  
  26. struct dbuf {
  27.     struct nfsdatastat nd [NNFSOPS];
  28. };
  29. struct tbuf {
  30.     struct nfstimestat nt [NNFS];
  31. };
  32. #define NFSMEAS_SERVER        0
  33. #define NFSMEAS_CLIENT        1
  34.  
  35. /* Ioctls */
  36. #define NFSIOCCTRL    _IOW('N', 0, int) /* turn off/on nfs measurement */
  37. #define NFSIOCGCD    _IOR('N', 1, struct dbuf) /* get nfs data */
  38. #define NFSIOCGSD    _IOR('N', 2, struct dbuf) /* get nfs data */
  39. #define NFSIOCGCT    _IOR('N', 3, struct tbuf) /* get nfs data */
  40. #define NFSIOCGST    _IOR('N', 4, struct tbuf) /* get nfs data */
  41. #define NFSIOCCLR    _IO('N', 2)    /* clear nfs statistics */
  42. #endif _NFS_MEAS_
  43.