diff options
author | ed <ed@FreeBSD.org> | 2008-09-22 18:44:09 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-09-22 18:44:09 +0000 |
commit | d49d04e133d85e7fb254cd0782887e455b0e86f0 (patch) | |
tree | 645eac99df7ace0cbc8bdab52b04a84927ef9465 /sys/sys/ttydevsw.h | |
parent | f419b74a96a07076040b8fd85cc326c97f79cf22 (diff) | |
download | FreeBSD-src-d49d04e133d85e7fb254cd0782887e455b0e86f0.zip FreeBSD-src-d49d04e133d85e7fb254cd0782887e455b0e86f0.tar.gz |
Fix style(9) issue in TTY header files: document function argument names.
According to style(9), function argument names should only be omitted
for prototypes that are exported to userspace. This means we should
document the function arguments in the TTY header files, because they
are only used in userspace.
While there, change the type of the buffer argument of
ttydisc_rint_bypass() to `const void *' instead of `char *'.
Requested by: attilio
Obtained from: //depot/projects/mpsafetty/...
Diffstat (limited to 'sys/sys/ttydevsw.h')
-rw-r--r-- | sys/sys/ttydevsw.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/sys/ttydevsw.h b/sys/sys/ttydevsw.h index 63b2db4..842143d 100644 --- a/sys/sys/ttydevsw.h +++ b/sys/sys/ttydevsw.h @@ -40,16 +40,18 @@ * Driver routines that are called from the line discipline to adjust * hardware parameters and such. */ -typedef int tsw_open_t(struct tty *); -typedef void tsw_close_t(struct tty *); -typedef void tsw_outwakeup_t(struct tty *); -typedef void tsw_inwakeup_t(struct tty *); -typedef int tsw_ioctl_t(struct tty *, u_long, caddr_t, struct thread *); -typedef int tsw_param_t(struct tty *, struct termios *); -typedef int tsw_modem_t(struct tty *, int, int); -typedef int tsw_mmap_t(struct tty *, vm_offset_t, vm_paddr_t *, int); -typedef void tsw_pktnotify_t(struct tty *, char); -typedef void tsw_free_t(void *); +typedef int tsw_open_t(struct tty *tp); +typedef void tsw_close_t(struct tty *tp); +typedef void tsw_outwakeup_t(struct tty *tp); +typedef void tsw_inwakeup_t(struct tty *tp); +typedef int tsw_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, + struct thread *td); +typedef int tsw_param_t(struct tty *tp, struct termios *t); +typedef int tsw_modem_t(struct tty *tp, int sigon, int sigoff); +typedef int tsw_mmap_t(struct tty *tp, vm_offset_t offset, + vm_paddr_t * paddr, int nprot); +typedef void tsw_pktnotify_t(struct tty *tp, char event); +typedef void tsw_free_t(void *softc); struct ttydevsw { unsigned int tsw_flags; /* Default TTY flags. */ |