summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-07-15 20:47:41 +0000
committerphk <phk@FreeBSD.org>2004-07-15 20:47:41 +0000
commitf00200d8a459bcf01e832c89518247e88ce28bf0 (patch)
treecb8932d8c884d3a6cc8f7e0616a4bdfa7fe0e5ee /sys/kern/tty.c
parent2f3742942cca7902c160ba9f75eae9a92e905e0f (diff)
downloadFreeBSD-src-f00200d8a459bcf01e832c89518247e88ce28bf0.zip
FreeBSD-src-f00200d8a459bcf01e832c89518247e88ce28bf0.tar.gz
Preparation commit for the tty cleanups that will follow in the near
future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 36fbb36..f0172df 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -230,7 +230,7 @@ SYSCTL_INT(_kern, OID_AUTO, drainwait, CTLFLAG_RW, &drainwait,
* Initial open of tty, or (re)entry to standard tty line discipline.
*/
int
-ttyopen(struct cdev *device, struct tty *tp)
+tty_open(struct cdev *device, struct tty *tp)
{
int s;
@@ -256,12 +256,12 @@ ttyopen(struct cdev *device, struct tty *tp)
* Handle close() on a tty line: flush and set to initial state,
* bumping generation number so that pending read/write calls
* can detect recycling of the tty.
- * XXX our caller should have done `spltty(); l_close(); ttyclose();'
+ * XXX our caller should have done `spltty(); l_close(); tty_close();'
* and l_close() should have flushed, but we repeat the spltty() and
* the flush in case there are buggy callers.
*/
int
-ttyclose(struct tty *tp)
+tty_close(struct tty *tp)
{
int s;
@@ -2761,7 +2761,7 @@ ttyrel(struct tty *tp)
/*
* Allocate a tty struct. Clists in the struct will be allocated by
- * ttyopen().
+ * tty_open().
*/
struct tty *
ttymalloc(struct tty *tp)
OpenPOWER on IntegriCloud