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

##### struct's

    bdevsw            X
    cdevsw            X
    linesw            X

       1: /*
       2:  * Copyright (c) 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:  *	@(#)conf.h	1.3 (2.11BSD Berkeley) 12/23/92
       7:  */
       8:
       9: /*
      10:  * Declaration of block device
      11:  * switch. Each entry (row) is
      12:  * the only link between the
      13:  * main unix code and the driver.
      14:  * The initialization of the
      15:  * device switches is in the
      16:  * file conf.c.
      17:  */
      18: struct bdevsw
      19: {
      20:     int (*d_open)();
      21:     int (*d_close)();
      22:     int (*d_strategy)();
      23:     int (*d_root)();        /* XXX root attach routine */
      24:     daddr_t (*d_psize)();
      25:     int d_flags;
      26: };
      27:
      28: #if defined(KERNEL) && !defined(SUPERVISOR)
      29: extern struct   bdevsw bdevsw[];
      30: #endif
      31:
      32: /*
      33:  * Character device switch.
      34:  */
      35: struct cdevsw
      36: {
      37:     int (*d_open)();
      38:     int (*d_close)();
      39:     int (*d_read)();
      40:     int (*d_write)();
      41:     int (*d_ioctl)();
      42:     int (*d_stop)();
      43:     struct tty *d_ttys;
      44:     int (*d_select)();
      45:     int (*d_strategy)();
      46: };
      47: #if defined(KERNEL) && !defined(SUPERVISOR)
      48: extern struct   cdevsw cdevsw[];
      49: #endif
      50:
      51: /*
      52:  * tty line control switch.
      53:  */
      54: struct linesw
      55: {
      56:     int (*l_open)();
      57:     int (*l_close)();
      58:     int (*l_read)();
      59:     int (*l_write)();
      60:     int (*l_ioctl)();
      61:     int (*l_rint)();
      62:     int (*l_rend)();
      63:     int (*l_meta)();
      64:     int (*l_start)();
      65:     int (*l_modem)();
      66: };
      67: #if defined(KERNEL) && !defined(SUPERVISOR)
      68: extern struct   linesw linesw[];
      69: #endif

#### Defined struct's

bdevsw defined in line 18; used 4 times

- in line 29(2)
- in /usr/src/sys/pdp/conf.c line 174(2)

cdevsw defined in line 35; used 8 times

- in line 48(2)
- in /usr/src/sys/pdp/conf.c line 359(2)
- in /usr/src/usr.bin/uucp/acucntrl.c line 642(2), 666(2)

linesw defined in line 54; used 4 times

- in line 68(2)
- in /usr/src/sys/sys/tty_conf.c line 39(2)

#### Usage of this include

conf.h used 38 times

- in /usr/src/libexec/tcpd/ncr.c line 19
- in /usr/src/sys/pdp/conf.c line 10
- in /usr/src/sys/pdp/cons.c line 13
- in /usr/src/sys/pdp/mem.c line 12
- in /usr/src/sys/pdp/ram.c line 23
- in /usr/src/sys/pdpuba/br.c line 44
- in /usr/src/sys/pdpuba/dh.c line 19
- in /usr/src/sys/pdpuba/dhu.c line 26
- in /usr/src/sys/pdpuba/dhv.c line 32
- in /usr/src/sys/pdpuba/dr.c line 22
- in /usr/src/sys/pdpuba/dz.c line 20
- in /usr/src/sys/pdpuba/hk.c line 39
- in /usr/src/sys/pdpuba/ht.c line 17
- in /usr/src/sys/pdpuba/ra.c line 137
- in /usr/src/sys/pdpuba/rk.c line 19
- in /usr/src/sys/pdpuba/rl.c line 49
- in /usr/src/sys/pdpuba/rx.c line 47
- in /usr/src/sys/pdpuba/si.c line 20
- in /usr/src/sys/pdpuba/tm.c line 17
- in /usr/src/sys/pdpuba/tmscp.c line 253
- in /usr/src/sys/pdpuba/ts.c line 17
- in /usr/src/sys/pdpuba/xp.c line 22
- in /usr/src/sys/sys/init_main.c line 19
- in /usr/src/sys/sys/kern_descrip.c line 17
- in /usr/src/sys/sys/subr_prf.c line 14
- in /usr/src/sys/sys/sys_generic.c line 18
- in /usr/src/sys/sys/sys_inode.c line 21
- in /usr/src/sys/sys/tty.c line 15
- in /usr/src/sys/sys/tty_conf.c line 16
- in /usr/src/sys/sys/tty_pty.c line 21
- in /usr/src/sys/sys/tty_tty.c line 18
- in /usr/src/sys/sys/ufs_bio.c line 12
- in /usr/src/sys/sys/ufs_bmap.c line 13
- in /usr/src/sys/sys/ufs_mount.c line 20
- in /usr/src/sys/sys/vm_swp.c line 15
- in /usr/src/ucb/PORT/systat/swap.c line 16
- in /usr/src/usr.bin/uucp/acucntrl.c line 51
- in /usr/src/usr.sbin/pstat/pstat.c line 31

Last modified: 1992-12-24 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 569 |