aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ttydevsw.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-09-22 18:44:09 +0000
committerEd Schouten <ed@FreeBSD.org>2008-09-22 18:44:09 +0000
commitd344ffe54985479e3a6eca735de4672b23a4a58d (patch)
tree645eac99df7ace0cbc8bdab52b04a84927ef9465 /sys/sys/ttydevsw.h
parentc750e17cf5ead03a2ea7079ab29644aebb97163e (diff)
downloadsrc-d344ffe54985479e3a6eca735de4672b23a4a58d.tar.gz
src-d344ffe54985479e3a6eca735de4672b23a4a58d.zip
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/...
Notes
Notes: svn path=/head/; revision=183274
Diffstat (limited to 'sys/sys/ttydevsw.h')
-rw-r--r--sys/sys/ttydevsw.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/sys/ttydevsw.h b/sys/sys/ttydevsw.h
index 63b2db468950..842143d6d911 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. */