Date: Mon, 1 Sep 2003 14:01:55 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 37339 for review Message-ID: <200309012101.h81L1tHn094091@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37339 Change 37339 by marcel@marcel_nfs on 2003/09/01 14:01:35 s/uart_close/uart_tty_close/g s/uart_ioctl/uart_tty_ioctl/g s/uart_open/uart_tty_open/g Now that the TTY interface is not the only interface (well, by design at least :-), avoid a naming scheme that implies otherwise. Affected files ... .. //depot/projects/uart/dev/uart/uart_tty.c#9 edit Differences ... ==== //depot/projects/uart/dev/uart/uart_tty.c#9 (text+ko) ==== @@ -62,16 +62,16 @@ CONS_DRIVER(uart, uart_cnprobe, uart_cninit, uart_cnterm, uart_cngetc, uart_cncheckc, uart_cnputc, NULL); -static d_open_t uart_open; -static d_close_t uart_close; -static d_ioctl_t uart_ioctl; +static d_open_t uart_tty_open; +static d_close_t uart_tty_close; +static d_ioctl_t uart_tty_ioctl; static struct cdevsw uart_cdevsw = { - .d_open = uart_open, - .d_close = uart_close, + .d_open = uart_tty_open, + .d_close = uart_tty_close, .d_read = ttyread, .d_write = ttywrite, - .d_ioctl = uart_ioctl, + .d_ioctl = uart_tty_ioctl, .d_poll = ttypoll, .d_name = uart_driver_name, .d_maj = MAJOR_AUTO, @@ -335,7 +335,7 @@ } static int -uart_open(dev_t dev, int flags, int mode, struct thread *td) +uart_tty_open(dev_t dev, int flags, int mode, struct thread *td) { struct uart_softc *sc; struct tty *tp; @@ -424,7 +424,7 @@ } static int -uart_close(dev_t dev, int flags, int mode, struct thread *td) +uart_tty_close(dev_t dev, int flags, int mode, struct thread *td) { struct uart_softc *sc; struct tty *tp; @@ -452,7 +452,8 @@ } static int -uart_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td) +uart_tty_ioctl(dev_t dev, u_long cmd, caddr_t data, int flags, + struct thread *td) { struct uart_softc *sc; struct tty *tp;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309012101.h81L1tHn094091>