h/conf.h

05500 /* 05501 * Declaration of block device 05502 * switch. Each entry (row) is 05503 * the only link between the 05504 * main unix code and the driver. 05505 * The initialization of the 05506 * device switches is in the 05507 * file conf.c. 05508 */ 05509 extern struct bdevsw 05510 { 05511 int (*d_open)(); 05512 int (*d_close)(); 05513 int (*d_strategy)(); 05514 struct buf *d_tab; 05515 } bdevsw[]; 05516 05517 /* 05518 * Character device switch. 05519 */ 05520 extern struct cdevsw 05521 { 05522 int (*d_open)(); 05523 int (*d_close)(); 05524 int (*d_read)(); 05525 int (*d_write)(); 05526 int (*d_ioctl)(); 05527 int (*d_stop)(); 05528 struct tty *d_ttys; 05529 } cdevsw[]; 05530 05531 /* 05532 * tty line control switch. 05533 */ 05534 extern struct linesw 05535 { 05536 int (*l_open)(); 05537 int (*l_close)(); 05538 int (*l_read)(); 05539 char *(*l_write)(); 05540 int (*l_ioctl)(); 05541 int (*l_rint)(); 05542 int (*l_rend)(); 05543 int (*l_meta)(); 05544 int (*l_start)(); 05545 int (*l_modem)(); 05546 } linesw[]; 05547 05548 05549