| * Copyright (C) 2001 Jeff Dike (jdike@karaya.com) |
| static void *tty_chan_init(char *str, int device, struct chan_opts *opts) |
| printk("tty_init : channel type 'tty' must specify " |
| data = um_kmalloc(sizeof(*data)); |
| *data = ((struct tty_chan) { .dev = str, |
| static int tty_open(int input, int output, int primary, void *d, |
| struct tty_chan *data = d; |
| fd = os_open_file(data->dev, of_set_rw(OPENFLAGS(), input, output), 0); |
| CATCH_EINTR(err = tcgetattr(fd, &data->tt)); |
| struct chan_ops tty_ops = { |
| .console_write = generic_console_write, |
| .window_size = generic_window_size, |
| * Overrides for Emacs so that we follow Linus's tabbing style. |
| * Emacs will notice this stuff at the end of the file and automatically |
| * adjust the settings for this buffer only. This must remain at the end |
| * --------------------------------------------------------------------------- |