# 2.11BSD#431 - /usr/ingres/source/lock.h

##### Variables

    Acclock           X
    Lockrel           X

##### Macros

    A_ABT             X
    A_RLS1            X
    A_RLSA            X
    A_RTN             X
    A_SLP             X
    KEYSIZE           X
    M_EXCL            X
    M_SHARE           X
    T_CS              X
    T_DB              X
    T_PAGE            X
    T_REL             X

##### struct's

    lockreq           X

       1: /*
       2: **	Concurency structs and global variables
       3: */
       4: # define    M_SHARE     2
       5: # define    M_EXCL      1
       6: # define    T_CS        0
       7: # define    T_PAGE      1
       8: # define    T_REL       2
       9: # define    T_DB        3
      10: # define    A_RTN       1
      11: # define    A_SLP       2
      12: # define    A_RLS1      3
      13: # define    A_RLSA      4
      14: # define    A_ABT       5
      15: # define    KEYSIZE     12
      16: struct lockreq
      17: {
      18:     char    lract;          /* requested action
      19: 					 *	=1 request lock,err return
      20: 					 *	=2 request lock,sleep
      21: 					 *	=3 release lock
      22: 					 *	=release all locks for pid
      23: 					 */
      24:     char    lrtype;         /* type of lock:
      25: 					 *   =0, critical section lock
      26: 					 *   =1, page lock
      27: 					 *   =2, logical lock
      28: 					 *   =3, data base lock
      29: 					 */
      30:     char    lrmod;          /* mode of lock
      31: 					 *	=1 exclusive lock
      32: 					 *	=2 shared lock
      33: 					*/
      34:     char    lpad;           /* padding to align the key */
      35:                     /* key for the lock */
      36:     char    dbnode[4];      /* inode of data base */
      37:     char    lrel[4];        /* relation tid */
      38:     char    lpage[4];       /* page address		*/
      39: };
      40:
      41: char    Acclock;            /* locks enabled flag */
      42: extern int  Alockdes;       /* file descriptor for lock device*/
      43: int Lockrel;            /* lock relations flag*/

#### Defined variables

Acclock defined in line 41; used 12 times

- in /usr/ingres/source/access/accbuf.c line 108
- in /usr/ingres/source/access/add_ovflo.c line 32-35(2), 53, 87
- in /usr/ingres/source/access/ndxsearch.c line 93, 152
- in /usr/ingres/source/access/page.c line 40, 145
- in /usr/ingres/source/access/scan_dups.c line 34, 51
- in /usr/ingres/source/iutil/pglocks.c line 74

Lockrel defined in line 43; used 14 times

- in /usr/ingres/source/access/accbuf.c line 104-105(2)
- in /usr/ingres/source/dbu/copy.c line 211, 222, 247
- in /usr/ingres/source/dbu/create.c line 318
- in /usr/ingres/source/dbu/index.c line 159, 209
- in /usr/ingres/source/dbu/modify.c line 196, 250
- in /usr/ingres/source/dbu/print.c line 111, 155
- in /usr/ingres/source/decomp/qryproc.c line 64
- in /usr/ingres/source/decomp/reinit.c line 15

#### Defined struct's

lockreq defined in line 16; used 32 times

- in /usr/ingres/source/access/accbuf.c line 15(2)
- in /usr/ingres/source/iutil/cslocks.c line 5(2), 30(2), 59(2)
- in /usr/ingres/source/iutil/dblocks.c line 3(2), 28(2), 50(2)
- in /usr/ingres/source/iutil/initucode.c line 625(2)
- in /usr/ingres/source/iutil/pglocks.c line 5(2), 30(2), 58(2), 78(2)
- in /usr/ingres/source/iutil/rllocks.c line 3(2), 30(2), 55(2)
- in /usr/ingres/source/support/ingres.c line 187(2)

#### Defined macros

A_ABT defined in line 14; never used
A_RLS1 defined in line 12; used 4 times

- in /usr/ingres/source/iutil/cslocks.c line 52
- in /usr/ingres/source/iutil/dblocks.c line 45
- in /usr/ingres/source/iutil/pglocks.c line 53
- in /usr/ingres/source/iutil/rllocks.c line 48

A_RLSA defined in line 13; used 1 times

- in /usr/ingres/source/iutil/pglocks.c line 77

A_RTN defined in line 10; used 2 times

- in /usr/ingres/source/decomp/lockit.c line 69
- in /usr/ingres/source/iutil/initucode.c line 590

A_SLP defined in line 11; used 11 times

- in /usr/ingres/source/dbu/copy.c line 212, 223
- in /usr/ingres/source/dbu/index.c line 161
- in /usr/ingres/source/dbu/modify.c line 199
- in /usr/ingres/source/dbu/print.c line 112
- in /usr/ingres/source/decomp/lockit.c line 73
- in /usr/ingres/source/iutil/cslocks.c line 22
- in /usr/ingres/source/iutil/initucode.c line 588
- in /usr/ingres/source/iutil/pglocks.c line 25
- in /usr/ingres/source/qrymod/d_prot.c line 267
- in /usr/ingres/source/qrymod/define.c line 223

KEYSIZE defined in line 15; never used
M_EXCL defined in line 5; used 12 times

- in /usr/ingres/source/dbu/copy.c line 223
- in /usr/ingres/source/dbu/modify.c line 199
- in /usr/ingres/source/decomp/lockit.c line 66
- in /usr/ingres/source/iutil/cslocks.c line 24
- in /usr/ingres/source/iutil/pglocks.c line 27
- in /usr/ingres/source/qrymod/d_prot.c line 267
- in /usr/ingres/source/qrymod/define.c line 223
- in /usr/ingres/source/support/ingres.c line 651
- in /usr/ingres/source/support/purge.c line 126-128(2)
- in /usr/ingres/source/support/restore.c line 90
- in /usr/ingres/source/support/sysmod.c line 100

M_SHARE defined in line 4; used 7 times

- in /usr/ingres/source/dbu/copy.c line 212
- in /usr/ingres/source/dbu/index.c line 161
- in /usr/ingres/source/dbu/print.c line 112
- in /usr/ingres/source/decomp/lockit.c line 68
- in /usr/ingres/source/support/helpr.c line 31
- in /usr/ingres/source/support/ingres.c line 651
- in /usr/ingres/source/support/printr.c line 40

T_CS defined in line 6; used 2 times

- in /usr/ingres/source/iutil/cslocks.c line 23, 53

T_DB defined in line 9; used 2 times

- in /usr/ingres/source/iutil/dblocks.c line 22, 46

T_PAGE defined in line 7; used 2 times

- in /usr/ingres/source/iutil/pglocks.c line 26, 55

T_REL defined in line 8; used 2 times

- in /usr/ingres/source/iutil/rllocks.c line 23, 49

#### Usage of this include

lock.h used 31 times

- in /usr/ingres/source/access/accbuf.c line 4
- in /usr/ingres/source/access/add_ovflo.c line 4
- in /usr/ingres/source/access/find.c line 5
- in /usr/ingres/source/access/ndxsearch.c line 43
- in /usr/ingres/source/access/page.c line 4
- in /usr/ingres/source/access/readadmin.c line 4
- in /usr/ingres/source/access/rhash.c line 5
- in /usr/ingres/source/access/scan_dups.c line 4
- in /usr/ingres/source/dbu/copy.c line 7
- in /usr/ingres/source/dbu/create.c line 6
- in /usr/ingres/source/dbu/index.c line 5
- in /usr/ingres/source/dbu/main.c line 6
- in /usr/ingres/source/dbu/modify.c line 7
- in /usr/ingres/source/dbu/print.c line 4
- in /usr/ingres/source/decomp/lockit.c line 4
- in /usr/ingres/source/decomp/qryproc.c line 5
- in /usr/ingres/source/decomp/reinit.c line 4
- in /usr/ingres/source/iutil/cslocks.c line 3
- in /usr/ingres/source/iutil/dblocks.c line 2
- in /usr/ingres/source/iutil/initucode.c line 7
- in /usr/ingres/source/iutil/pglocks.c line 3
- in /usr/ingres/source/iutil/rllocks.c line 2
- in /usr/ingres/source/qrymod/d_prot.c line 8
- in /usr/ingres/source/qrymod/define.c line 4
- in /usr/ingres/source/support/helpr.c line 6
- in /usr/ingres/source/support/ingres.c line 9
- in /usr/ingres/source/support/printr.c line 6
- in /usr/ingres/source/support/purge.c line 7
- in /usr/ingres/source/support/restore.c line 10
- in /usr/ingres/source/support/subs.c line 8
- in /usr/ingres/source/support/sysmod.c line 3

Last modified: 1995-02-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1151 |