# 2.11BSD#431 - /usr/src/sys/h/quota.h

##### Variables

    dquot             X
    dquotNDQUOT       X
    ix_dquot          X
    ndquot            X
    nquota            X
    quota             X
    quotaNQUOTA       X

##### Macros

    DQ_BLKS           X
    DQ_FAKE           X
    DQ_INODS          X
    DQ_LOCK           X
    DQ_MOD            X
    DQ_WANT           X
    LOSTDQUOT         X
    MAX_DQ_WARN       X
    MAX_IQ_WARN       X
    NDQHASH           X
    NDQUOT            X
    NODQUOT           X
    NOQUOTA           X
    NQHASH            X
    NQUOTA            X
    QUOTAFILENAME     X
    QUOTAGROUP        X
    QUOTAMAP          X
    QUOTAUNMAP        X
    Q_DOWARN          X
    Q_GETDLIM         X
    Q_LOCK            X
    Q_NDQ             X
    Q_NEW             X
    Q_SETDLIM         X
    Q_SETDUSE         X
    Q_SETUID          X
    Q_SETWARN         X
    Q_SYNC            X
    Q_WANT            X
    dq_bhardlimit     X
    dq_bsoftlimit     X
    dq_bwarn          X
    dq_curblocks      X
    dq_curinodes      X
    dq_freeb          X
    dq_freef          X
    dq_ihardlimit     X
    dq_isoftlimit     X
    dq_iwarn          X
    dq_own            X

##### struct's

    dqblk             X
    dqhead            X
    dquot             X
    dqusage           X
    dqwarn            X
    qhash             X
    quota             X

       1: /*
       2:  * Copyright (c) 1982, 1986 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)quota.h	7.1.1 (2.11BSD) 1996/1/23
       7:  */
       8:
       9: /*
      10:  * MELBOURNE DISC QUOTAS
      11:  *
      12:  * Various junk to do with various quotas (etc) imposed upon
      13:  * the average user (big brother finally hits UNIX).
      14:  *
      15:  * The following structure exists in core for each logged on user.
      16:  * It contains global junk relevant to that user's quotas.
      17:  *
      18:  * The u_quota field of each user struct contains a pointer to
      19:  * the quota struct relevant to the current process, this is changed
      20:  * by 'setuid' sys call, &/or by the Q_SETUID quota() call.
      21:  */
      22: struct quota {
      23:     struct  quota *q_forw, *q_back; /* hash chain, MUST be first */
      24:     short   q_cnt;          /* ref count (# processes) */
      25:     uid_t   q_uid;          /* real uid of owner */
      26:     int q_flags;        /* struct management flags */
      27: #define Q_LOCK  0x01        /* quota struct locked (for disc i/o) */
      28: #define Q_WANT  0x02        /* issue a wakeup when lock goes off */
      29: #define Q_NEW   0x04        /* new quota - no proc1 msg sent yet */
      30: #define Q_NDQ   0x08        /* account has NO disc quota */
      31:     struct  quota *q_freef, **q_freeb;
      32:     struct  dquot *q_dq[NMOUNT];    /* disc quotas for mounted filesys's */
      33: };
      34:
      35: #define NOQUOTA ((struct quota *) 0)
      36:
      37: #if defined(KERNEL) && defined(QUOTA) && !defined(SUPERVISOR)
      38: struct  quota *quota, *quotaNQUOTA;
      39: int nquota;
      40: struct  quota *getquota(), *qfind();
      41: #endif
      42:
      43: /*
      44:  * The following structure defines the format of the disc quota file
      45:  * (as it appears on disc) - the file is an array of these structures
      46:  * indexed by user number.  The setquota sys call establishes the inode
      47:  * for each quota file (a pointer is retained in the mount structure).
      48:  *
      49:  * The following constants define the number of warnings given a user
      50:  * before the soft limits are treated as hard limits (usually resulting
      51:  * in an allocation failure).  The warnings are normally manipulated
      52:  * each time a user logs in through the Q_DOWARN quota call.  If
      53:  * the user logs in and is under the soft limit the warning count
      54:  * is reset to MAX_*_WARN, otherwise a message is printed and the
      55:  * warning count is decremented.  This makes MAX_*_WARN equivalent to
      56:  * the number of logins before soft limits are treated as hard limits.
      57:  */
      58: #define MAX_IQ_WARN 3
      59: #define MAX_DQ_WARN 3
      60:
      61: struct  dqblk {
      62:     u_long  dqb_bhardlimit; /* absolute limit on disc blks alloc */
      63:     u_long  dqb_bsoftlimit; /* preferred limit on disc blks */
      64:     u_long  dqb_curblocks;  /* current block count */
      65:     u_short dqb_ihardlimit; /* maximum # allocated inodes + 1 */
      66:     u_short dqb_isoftlimit; /* preferred inode limit */
      67:     u_short dqb_curinodes;  /* current # allocated inodes */
      68:     u_char  dqb_bwarn;  /* # warnings left about excessive disc use */
      69:     u_char  dqb_iwarn;  /* # warnings left about excessive inodes */
      70: };
      71:
      72: /*
      73:  * The following structure records disc usage for a user on a filesystem.
      74:  * There is one allocated for each quota that exists on any filesystem
      75:  * for the current user. A cache is kept of other recently used entries.
      76:  */
      77: struct  dquot {
      78:     struct  dquot *dq_forw, *dq_back;/* MUST be first entry */
      79:     union   {
      80:         struct  quota *Dq_own;  /* the quota that points to this */
      81:         struct {        /* free list */
      82:             struct  dquot *Dq_freef, **Dq_freeb;
      83:         } dq_f;
      84:     } dq_u;
      85:     short   dq_flags;
      86: #define DQ_LOCK     0x01        /* this quota locked (no MODS) */
      87: #define DQ_WANT     0x02        /* wakeup on unlock */
      88: #define DQ_MOD      0x04        /* this quota modified since read */
      89: #define DQ_FAKE     0x08        /* no limits here, just usage */
      90: #define DQ_BLKS     0x10        /* has been warned about blk limit */
      91: #define DQ_INODS    0x20        /* has been warned about inode limit */
      92:     short   dq_cnt;         /* count of active references */
      93:     uid_t   dq_uid;         /* user this applies to */
      94:     dev_t   dq_dev;         /* filesystem this relates to */
      95:     struct dqblk dq_dqb;        /* actual usage & quotas */
      96: };
      97:
      98: #define dq_own      dq_u.Dq_own
      99: #define dq_freef    dq_u.dq_f.Dq_freef
     100: #define dq_freeb    dq_u.dq_f.Dq_freeb
     101: #define dq_bhardlimit   dq_dqb.dqb_bhardlimit
     102: #define dq_bsoftlimit   dq_dqb.dqb_bsoftlimit
     103: #define dq_curblocks    dq_dqb.dqb_curblocks
     104: #define dq_ihardlimit   dq_dqb.dqb_ihardlimit
     105: #define dq_isoftlimit   dq_dqb.dqb_isoftlimit
     106: #define dq_curinodes    dq_dqb.dqb_curinodes
     107: #define dq_bwarn    dq_dqb.dqb_bwarn
     108: #define dq_iwarn    dq_dqb.dqb_iwarn
     109:
     110: #define NODQUOT     ((struct dquot *) 0)
     111: #define LOSTDQUOT   ((struct dquot *) 1)
     112:
     113: #if defined(KERNEL) && defined(QUOTA) && !defined(SUPERVISOR)
     114: struct  dquot *dquot, *dquotNDQUOT;
     115: int ndquot;
     116: struct  dquot *discquota(), *inoquota(), *dqalloc(), *dqp();
     117: #endif
     118:
     119: #define QUOTAFILENAME   "quotas"
     120: #define QUOTAGROUP  "operator"
     121:
     122: /*
     123:  * Definitions for the 'quota' system call.
     124:  */
     125: #define Q_SETDLIM   1   /* set disc limits & usage */
     126: #define Q_GETDLIM   2   /* get disc limits & usage */
     127: #define Q_SETDUSE   3   /* set disc usage only */
     128: #define Q_SYNC      4   /* update disc copy of quota usages */
     129: #define Q_SETUID    16  /* change proc to use quotas for uid */
     130: #define Q_SETWARN   25  /* alter inode/block warning counts */
     131: #define Q_DOWARN    26  /* warn user about excessive space/inodes */
     132:
     133: /*
     134:  * Used in Q_SETDUSE.
     135:  */
     136: struct  dqusage {
     137:     u_short du_curinodes;
     138:     u_long  du_curblocks;
     139: };
     140:
     141: /*
     142:  * Used in Q_SETWARN.
     143:  */
     144: struct  dqwarn {
     145:     u_char  dw_bwarn;
     146:     u_char  dw_iwarn;
     147: };
     148:
     149: #if defined(KERNEL) && defined(QUOTA) && !defined(SUPERVISOR)
     150: #include "../machine/seg.h"
     151:
     152: struct  qhash {
     153:     struct  qhash *qh_forw;
     154:     struct  qhash *qh_back;
     155: };
     156:
     157: struct  dqhead {
     158:     struct  dqhead *dqh_forw;
     159:     struct  dqhead *dqh_back;
     160: };
     161:
     162: #define QUOTAMAP()  mapseg5(quotreg, quotdesc)
     163: #define QUOTAUNMAP()    normalseg5()
     164:
     165: memaddr quotreg;
     166: u_short quotdesc;
     167: struct  dquot **ix_dquot;
     168:
     169: #define NQHASH      16  /* small power of 2 */
     170: #define NDQHASH     37  /* 4.3bsd used 51 which isn't even prime */
     171: #define NQUOTA      40
     172: #define NDQUOT      150
     173: #endif

#### Defined variables

dquot defined in line 114; used 10 times

- in /usr/src/sys/CURLY/param.c line 126, 132
- in /usr/src/sys/GENERIC/param.c line 126, 132
- in /usr/src/sys/QT/param.c line 126, 132
- in /usr/src/sys/conf/param.c line 126, 132
- in /usr/src/sys/sys/quota_kern.c line 96, 795

dquotNDQUOT defined in line 114; used 5 times

- in /usr/src/sys/CURLY/param.c line 132
- in /usr/src/sys/GENERIC/param.c line 132
- in /usr/src/sys/QT/param.c line 132
- in /usr/src/sys/conf/param.c line 132
- in /usr/src/sys/sys/quota_kern.c line 795

ix_dquot defined in line 167; used 18 times

- in /usr/src/sys/CURLY/param.c line 131
- in /usr/src/sys/GENERIC/param.c line 131
- in /usr/src/sys/QT/param.c line 131
- in /usr/src/sys/conf/param.c line 131
- in /usr/src/sys/sys/quota_kern.c line 765-766(2)
- in /usr/src/sys/sys/quota_sys.c line 230, 237
- in /usr/src/sys/sys/quota_ufs.c line 97, 194
- in /usr/src/sys/sys/ufs_inode.c line 194, 318-319(2), 764-765(2)
- in /usr/src/sys/sys/ufs_syscalls.c line 687, 1102, 1190

ndquot defined in line 115; used 9 times

- in /usr/src/sys/CURLY/param.c line 129-132(2)
- in /usr/src/sys/GENERIC/param.c line 129-132(2)
- in /usr/src/sys/QT/param.c line 129-132(2)
- in /usr/src/sys/conf/param.c line 129-132(2)
- in /usr/src/sys/sys/quota_kern.c line 129

nquota defined in line 39; used 9 times

- in /usr/src/sys/CURLY/param.c line 130-133(2)
- in /usr/src/sys/GENERIC/param.c line 130-133(2)
- in /usr/src/sys/QT/param.c line 130-133(2)
- in /usr/src/sys/conf/param.c line 130-133(2)
- in /usr/src/sys/sys/quota_kern.c line 109

quota defined in line 38; used 26 times

- in /usr/src/bin/login/login.c line 110, 302, 385
- in /usr/src/sbin/quotacheck/quotacheck.c line 299, 337
- in /usr/src/sys/CURLY/param.c line 125, 133
- in /usr/src/sys/GENERIC/param.c line 125, 133
- in /usr/src/sys/QT/param.c line 125, 133
- in /usr/src/sys/conf/param.c line 125, 133
- in /usr/src/sys/sys/quota_kern.c line 94, 225, 680, 730, 778
- in /usr/src/sys/sys/quota_subr.c line 70
- in /usr/src/sys/sys/quota_sys.c line 412
- in /usr/src/ucb/quota.c line 42, 141
- in /usr/src/usr.bin/at/atrun.c line 314
- in /usr/src/usr.sbin/edquota/edquota.c line 198, 280
- in /usr/src/usr.sbin/repquota/repquota.c line 164

quotaNQUOTA defined in line 38; used 7 times

- in /usr/src/sys/CURLY/param.c line 133
- in /usr/src/sys/GENERIC/param.c line 133
- in /usr/src/sys/QT/param.c line 133
- in /usr/src/sys/conf/param.c line 133
- in /usr/src/sys/sys/quota_kern.c line 730, 778
- in /usr/src/sys/sys/quota_sys.c line 412

#### Defined struct's

dqblk defined in line 61; used 70 times

- in line 95(2)
- in /usr/src/sbin/quotacheck/quotacheck.c line 255-260(4), 306(2), 314(2), 331(2), 343(2)
- in /usr/src/sys/sys/quota_kern.c line 404(2), 415-416(4), 455(2), 635(2), 649-650(4)
- in /usr/src/sys/sys/quota_sys.c line 166(2), 198(2), 262(2), 268-271(4)
- in /usr/src/ucb/quota.c line 114(2)
- in /usr/src/usr.sbin/edquota/edquota.c line 68(2), 169(2), 218-219(4), 226-229(4), 272(2), 293-295(6), 394(2)
- in /usr/src/usr.sbin/repquota/repquota.c line 61(2), 148-150(4), 176(2)

dqhead defined in line 157; used 34 times

- in line 158-159(4)
- in /usr/src/sys/CURLY/param.c line 117(2), 123(2)
- in /usr/src/sys/GENERIC/param.c line 117(2), 123(2)
- in /usr/src/sys/QT/param.c line 117(2), 123(2)
- in /usr/src/sys/conf/param.c line 117(2), 123(2)
- in /usr/src/sys/sys/quota_kern.c line 72-78(8), 97(2), 357(2), 451(2)

dquot defined in line 77; used 91 times

- in line 32, 78-82(4), 114-116(4), 167(2)
- in /usr/src/sys/CURLY/param.c line 114-115(4)
- in /usr/src/sys/GENERIC/param.c line 114-115(4)
- in /usr/src/sys/QT/param.c line 114-115(4)
- in /usr/src/sys/conf/param.c line 114-115(4)
- in /usr/src/sys/sys/quota_kern.c line 84-86(4), 96(2), 152(2), 284(2), 351-358(6), 445-452(6), 489(2), 550(2), 581(2), 701(2), 751(2)
- in /usr/src/sys/sys/quota_subr.c line 25-30(4), 82(2)
- in /usr/src/sys/sys/quota_sys.c line 165(2), 253(2), 286(2), 334(2), 373(2)
- in /usr/src/sys/sys/quota_ufs.c line 29-34(4), 92(2), 183(2)
- in /usr/src/sys/sys/ufs_inode.c line 113(2)
- in /usr/src/sys/sys/ufs_syscalls.c line 662(2), 1092(2), 1161(2)

dqusage defined in line 136; used 4 times

- in /usr/src/sbin/quotacheck/quotacheck.c line 257(2)
- in /usr/src/sys/sys/quota_sys.c line 287(2)

dqwarn defined in line 144; used 2 times

- in /usr/src/sys/sys/quota_sys.c line 336(2)

qhash defined in line 152; used 34 times

- in line 153-154(4)
- in /usr/src/sys/CURLY/param.c line 116(2), 122(2)
- in /usr/src/sys/GENERIC/param.c line 116(2), 122(2)
- in /usr/src/sys/QT/param.c line 116(2), 122(2)
- in /usr/src/sys/conf/param.c line 116(2), 122(2)
- in /usr/src/sys/sys/quota_kern.c line 46-52(8), 95(2), 151(2), 669(2)

quota defined in line 22; used 70 times

- in line 23(2), 31(2), 38-40(4), 80(2)
- in /usr/src/sys/CURLY/param.c line 113(2)
- in /usr/src/sys/GENERIC/param.c line 113(2)
- in /usr/src/sys/QT/param.c line 113(2)
- in /usr/src/sys/conf/param.c line 113(2)
- in /usr/src/sys/h/user.h line 134(2)
- in /usr/src/sys/sys/quota_kern.c line 58-59(4), 94(2), 145-154(6), 282(2), 453(2), 664-668(4), 700(2), 753(2)
- in /usr/src/sys/sys/quota_subr.c line 27(2), 55(2), 75(2)
- in /usr/src/sys/sys/quota_sys.c line 76(2), 160(2), 249(2), 282(2), 330(2), 370(2), 399(2), 429(2)
- in /usr/src/sys/sys/quota_ufs.c line 33(2), 184(2)

#### Defined macros

DQ_BLKS defined in line 90; used 7 times

- in /usr/src/sys/sys/quota_sys.c line 319, 359
- in /usr/src/sys/sys/quota_ufs.c line 129, 140-143(2), 158-161(2)

DQ_FAKE defined in line 89; never used
DQ_INODS defined in line 91; used 7 times

- in /usr/src/sys/sys/quota_sys.c line 319, 359
- in /usr/src/sys/sys/quota_ufs.c line 211, 224-227(2), 242-245(2)

DQ_LOCK defined in line 86; used 7 times

- in /usr/src/sys/sys/quota_kern.c line 401, 615, 630, 656
- in /usr/src/sys/sys/quota_sys.c line 188, 295, 343

DQ_MOD defined in line 88; used 10 times

- in /usr/src/sys/sys/quota_kern.c line 521, 596, 656
- in /usr/src/sys/sys/quota_subr.c line 87, 105
- in /usr/src/sys/sys/quota_sys.c line 214, 320, 360
- in /usr/src/sys/sys/quota_ufs.c line 105, 207

DQ_WANT defined in line 87; used 7 times

- in /usr/src/sys/sys/quota_kern.c line 419, 616, 654-656(2)
- in /usr/src/sys/sys/quota_sys.c line 189, 296, 344

LOSTDQUOT defined in line 111; used 11 times

- in /usr/src/sys/sys/quota_kern.c line 188-190(2), 254, 495, 501, 554, 585, 733
- in /usr/src/sys/sys/quota_subr.c line 39
- in /usr/src/sys/sys/quota_sys.c line 387
- in /usr/src/sys/sys/quota_ufs.c line 70

MAX_DQ_WARN defined in line 59; used 4 times

- in /usr/src/sys/sys/quota_subr.c line 121
- in /usr/src/sys/sys/quota_sys.c line 318
- in /usr/src/sys/sys/quota_ufs.c line 111
- in /usr/src/ucb/quota.c line 195

MAX_IQ_WARN defined in line 58; used 3 times

- in /usr/src/sys/sys/quota_subr.c line 102
- in /usr/src/sys/sys/quota_sys.c line 316
- in /usr/src/ucb/quota.c line 191

NDQHASH defined in line 170; used 7 times

- in /usr/src/sys/CURLY/param.c line 117
- in /usr/src/sys/GENERIC/param.c line 117
- in /usr/src/sys/QT/param.c line 117
- in /usr/src/sys/conf/param.c line 117
- in /usr/src/sys/sys/quota_kern.c line 68, 76, 122

NDQUOT defined in line 172; used 8 times

- in /usr/src/sys/CURLY/param.c line 115, 129
- in /usr/src/sys/GENERIC/param.c line 115, 129
- in /usr/src/sys/QT/param.c line 115, 129
- in /usr/src/sys/conf/param.c line 115, 129

NODQUOT defined in line 110; used 52 times

- in /usr/src/sys/sys/quota_kern.c line 137, 194, 254, 265, 271, 362, 376, 390, 399, 435, 471, 478, 486, 494, 510-512(2), 528, 554, 585, 600, 607, 738, 766-769(2), 787
- in /usr/src/sys/sys/quota_subr.c line 34-44(4)
- in /usr/src/sys/sys/quota_sys.c line 175-182(3), 217-222(2), 228, 257, 293, 341, 379, 387
- in /usr/src/sys/sys/quota_ufs.c line 56, 73, 79, 101, 198-201(2)
- in /usr/src/sys/sys/ufs_inode.c line 221, 247, 319, 765
- in /usr/src/sys/sys/ufs_syscalls.c line 1103, 1191

NOQUOTA defined in line 35; used 22 times

- in /usr/src/sys/sys/quota_kern.c line 117, 161, 171-175(2), 216, 222, 233, 255, 333, 340, 381, 486, 510, 542, 677, 688
- in /usr/src/sys/sys/quota_subr.c line 33, 57
- in /usr/src/sys/sys/quota_sys.c line 95, 218
- in /usr/src/sys/sys/quota_ufs.c line 40, 188

NQHASH defined in line 169; used 7 times

- in /usr/src/sys/CURLY/param.c line 116
- in /usr/src/sys/GENERIC/param.c line 116
- in /usr/src/sys/QT/param.c line 116
- in /usr/src/sys/conf/param.c line 116
- in /usr/src/sys/sys/quota_kern.c line 42, 50, 102

NQUOTA defined in line 171; used 8 times

- in /usr/src/sys/CURLY/param.c line 113, 130
- in /usr/src/sys/GENERIC/param.c line 113, 130
- in /usr/src/sys/QT/param.c line 113, 130
- in /usr/src/sys/conf/param.c line 113, 130

QUOTAFILENAME defined in line 119; used 2 times

- in /usr/src/sbin/quotacheck/quotacheck.c line 65
- in /usr/src/usr.sbin/repquota/repquota.c line 57

QUOTAGROUP defined in line 120; used 1 times

- in /usr/src/sbin/quotacheck/quotacheck.c line 66

QUOTAMAP defined in line 162; used 29 times

- in /usr/src/sys/sys/init_main.c line 103
- in /usr/src/sys/sys/kern_exit.c line 80
- in /usr/src/sys/sys/kern_fork.c line 160
- in /usr/src/sys/sys/kern_prot2.c line 78
- in /usr/src/sys/sys/quota_kern.c line 205, 297, 410, 620, 645, 711, 806
- in /usr/src/sys/sys/quota_sys.c line 47, 82, 193, 300, 348
- in /usr/src/sys/sys/quota_ufs.c line 62
- in /usr/src/sys/sys/sys_inode.c line 205
- in /usr/src/sys/sys/ufs_alloc.c line 152
- in /usr/src/sys/sys/ufs_inode.c line 193, 220, 245, 316, 577, 763
- in /usr/src/sys/sys/ufs_mount.c line 298
- in /usr/src/sys/sys/ufs_syscalls.c line 680, 1101, 1189

QUOTAUNMAP defined in line 163; used 33 times

- in /usr/src/sys/sys/init_main.c line 106
- in /usr/src/sys/sys/kern_exit.c line 82
- in /usr/src/sys/sys/kern_fork.c line 162
- in /usr/src/sys/sys/kern_prot2.c line 83
- in /usr/src/sys/sys/quota_kern.c line 203, 295, 406, 618, 640, 708, 804
- in /usr/src/sys/sys/quota_sys.c line 54, 87, 97, 130, 137, 148, 191, 298, 346
- in /usr/src/sys/sys/quota_ufs.c line 60
- in /usr/src/sys/sys/sys_inode.c line 208
- in /usr/src/sys/sys/ufs_alloc.c line 154
- in /usr/src/sys/sys/ufs_inode.c line 196, 222, 250, 320, 579, 766
- in /usr/src/sys/sys/ufs_mount.c line 300
- in /usr/src/sys/sys/ufs_syscalls.c line 696, 1117, 1201

Q_DOWARN defined in line 131; used 2 times

- in /usr/src/bin/login/login.c line 385
- in /usr/src/sys/sys/quota_sys.c line 94

Q_GETDLIM defined in line 126; used 2 times

- in /usr/src/ucb/quota.c line 141
- in /usr/src/usr.sbin/edquota/edquota.c line 198

Q_LOCK defined in line 27; used 8 times

- in /usr/src/sys/sys/quota_kern.c line 200, 247, 292, 314, 344
- in /usr/src/sys/sys/quota_ufs.c line 57, 71, 77

Q_NDQ defined in line 30; used 7 times

- in /usr/src/sys/sys/init_main.c line 105
- in /usr/src/sys/sys/quota_kern.c line 315, 731, 779
- in /usr/src/sys/sys/quota_subr.c line 33
- in /usr/src/sys/sys/quota_sys.c line 435
- in /usr/src/sys/sys/quota_ufs.c line 55

Q_NEW defined in line 29; used 2 times

- in /usr/src/sys/sys/quota_kern.c line 211, 274

Q_SETDLIM defined in line 125; used 1 times

- in /usr/src/usr.sbin/edquota/edquota.c line 280

Q_SETDUSE defined in line 127; used 1 times

- in /usr/src/sbin/quotacheck/quotacheck.c line 337

Q_SETUID defined in line 129; used 4 times

- in /usr/src/bin/login/login.c line 110, 302
- in /usr/src/sys/sys/quota_sys.c line 93
- in /usr/src/usr.bin/at/atrun.c line 314

Q_SETWARN defined in line 130; never used
Q_SYNC defined in line 128; used 4 times

- in /usr/src/sbin/quotacheck/quotacheck.c line 299
- in /usr/src/sys/sys/quota_sys.c line 93
- in /usr/src/ucb/quota.c line 42
- in /usr/src/usr.sbin/repquota/repquota.c line 164

Q_WANT defined in line 28; used 8 times

- in /usr/src/sys/sys/quota_kern.c line 201, 272, 293, 325, 344
- in /usr/src/sys/sys/quota_ufs.c line 58, 75-77(2)

dq_bhardlimit defined in line 101; used 2 times

- in /usr/src/sys/sys/quota_ufs.c line 156-157(2)

dq_bsoftlimit defined in line 102; used 13 times

- in /usr/src/sys/sys/quota_kern.c line 388, 433
- in /usr/src/sys/sys/quota_subr.c line 104(2)
- in /usr/src/sys/sys/quota_sys.c line 216, 317
- in /usr/src/sys/sys/quota_ufs.c line 103, 109-110(2), 116-119(2), 147-149(2)

dq_bwarn defined in line 107; used 10 times

- in /usr/src/sys/sys/quota_subr.c line 108-113(4), 121
- in /usr/src/sys/sys/quota_sys.c line 318, 358
- in /usr/src/sys/sys/quota_ufs.c line 109-111(2), 139

dq_curblocks defined in line 103; used 15 times

- in /usr/src/sys/sys/quota_subr.c line 104
- in /usr/src/sys/sys/quota_sys.c line 311-317(3)
- in /usr/src/sys/sys/quota_ufs.c line 110, 116-128(5), 147-149(3), 157, 170

dq_curinodes defined in line 106; used 9 times

- in /usr/src/sys/sys/quota_subr.c line 86
- in /usr/src/sys/sys/quota_sys.c line 309, 315
- in /usr/src/sys/sys/quota_ufs.c line 209-210(2), 232-233(2), 241, 255

dq_freeb defined in line 100; used 9 times

- in /usr/src/sys/sys/quota_kern.c line 126, 134, 377-380(4), 529, 602-605(2)

dq_freef defined in line 99; used 7 times

- in /usr/src/sys/sys/quota_kern.c line 125, 135-137(2), 375, 527, 607-608(2)

dq_ihardlimit defined in line 104; used 2 times

- in /usr/src/sys/sys/quota_ufs.c line 240-241(2)

dq_isoftlimit defined in line 105; used 9 times

- in /usr/src/sys/sys/quota_kern.c line 388, 433
- in /usr/src/sys/sys/quota_subr.c line 86(2)
- in /usr/src/sys/sys/quota_sys.c line 216, 315
- in /usr/src/sys/sys/quota_ufs.c line 203, 232-233(2)

dq_iwarn defined in line 108; used 8 times

- in /usr/src/sys/sys/quota_subr.c line 89-94(4), 102
- in /usr/src/sys/sys/quota_sys.c line 316, 357
- in /usr/src/sys/sys/quota_ufs.c line 223

dq_own defined in line 98; used 17 times

- in /usr/src/sys/sys/quota_kern.c line 195, 255, 268, 381, 542, 739
- in /usr/src/sys/sys/quota_subr.c line 42
- in /usr/src/sys/sys/quota_sys.c line 180, 218
- in /usr/src/sys/sys/quota_ufs.c line 74, 112, 140, 151, 158, 224, 234, 242

#### Usage of this include

quota.h used 25 times

- in /usr/src/bin/login/login.c line 33
- in /usr/src/sbin/quotacheck/quotacheck.c line 52
- in /usr/src/sys/CURLY/param.c line 111
- in /usr/src/sys/GENERIC/param.c line 111
- in /usr/src/sys/QT/param.c line 111
- in /usr/src/sys/conf/param.c line 111
- in /usr/src/sys/pdp/machdep2.c line 41
- in /usr/src/sys/sys/init_main.c line 32
- in /usr/src/sys/sys/kern_exit.c line 23
- in /usr/src/sys/sys/kern_fork.c line 24
- in /usr/src/sys/sys/kern_prot.c line 18
- in /usr/src/sys/sys/kern_prot2.c line 47
- in /usr/src/sys/sys/quota_kern.c line 31
- in /usr/src/sys/sys/quota_subr.c line 20
- in /usr/src/sys/sys/quota_sys.c line 19
- in /usr/src/sys/sys/quota_ufs.c line 20
- in /usr/src/sys/sys/sys_inode.c line 29
- in /usr/src/sys/sys/ufs_alloc.c line 20
- in /usr/src/sys/sys/ufs_inode.c line 22
- in /usr/src/sys/sys/ufs_mount.c line 25
- in /usr/src/sys/sys/ufs_syscalls.c line 19
- in /usr/src/ucb/quota.c line 26
- in /usr/src/usr.bin/at/atrun.c line 36
- in /usr/src/usr.sbin/edquota/edquota.c line 52
- in /usr/src/usr.sbin/repquota/repquota.c line 50

Last modified: 1996-01-24 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1039 |