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: * @(#)conf.h 7.1 (Berkeley) 6/4/86
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_dump)();
24: int (*d_psize)();
25: int d_flags;
26: };
27: #ifdef KERNEL
28: struct bdevsw bdevsw[];
29: #endif
30:
31: /*
32: * Character device switch.
33: */
34: struct cdevsw
35: {
36: int (*d_open)();
37: int (*d_close)();
38: int (*d_read)();
39: int (*d_write)();
40: int (*d_ioctl)();
41: int (*d_stop)();
42: int (*d_reset)();
43: struct tty *d_ttys;
44: int (*d_select)();
45: int (*d_mmap)();
46: };
47: #ifdef KERNEL
48: 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: #ifdef KERNEL
68: struct linesw linesw[];
69: #endif
70:
71: /*
72: * Swap device information
73: */
74: struct swdevt
75: {
76: dev_t sw_dev;
77: int sw_freed;
78: int sw_nblks;
79: };
80: #ifdef KERNEL
81: struct swdevt swdevt[];
82: #endif
Defined variables
bdevsw
defined in line
28; used 20 times
cdevsw
defined in line
48; used 22 times
- in /usr/src/sys/sys/kern_mman.c line
78
- in /usr/src/sys/sys/sys_inode.c line
105-108(2),
239,
258,
325,
500
- in /usr/src/sys/sys/tty.c line
160,
346,
530,
633,
792
- in /usr/src/sys/sys/tty_pty.c line
486
- in /usr/src/sys/sys/tty_tty.c line
32,
43,
54,
73,
86
- in /usr/src/sys/vax/conf.c line
636(2)
- in /usr/src/sys/vaxuba/uba.c line
350(2)
linesw
defined in line
68; used 70 times
- in /usr/src/sys/sys/tty.c line
295-298(3),
369
- in /usr/src/sys/sys/tty_conf.c line
66(2)
- in /usr/src/sys/sys/tty_pty.c line
82,
93,
133,
152,
210,
225,
445,
536-539(3)
- in /usr/src/sys/vax/cons.c line
47,
56,
67,
77,
101,
112,
137
- in /usr/src/sys/vaxuba/dh.c line
236,
252,
265,
274,
333,
349,
468,
765-767(2)
- in /usr/src/sys/vaxuba/dhu.c line
242,
258,
282,
291,
332-334(2),
369,
385,
544
- in /usr/src/sys/vaxuba/dmf.c line
294,
315,
331,
343,
376-378(2),
417,
436,
593
- in /usr/src/sys/vaxuba/dmz.c line
241,
296,
366,
378,
426-429(2),
460,
520,
680
- in /usr/src/sys/vaxuba/dz.c line
176,
191,
209,
219,
250-251(2),
285,
301,
430,
597-599(2)
swdevt
defined in line
81; used 16 times
Defined struct's
swdevt
defined in line
74; used 16 times
Usage of this include