diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 16:02:56 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 16:02:56 +0000 |
commit | 2140d01b277fa2ab698e66dda69e434f0be7bd13 (patch) | |
tree | 3337821fdd2a353d2216412ea8dd39eb5e65f007 /sys/dev/nmdm | |
parent | d443a4f573fc2d711f482fe749463c0007b462d0 (diff) |
Machine generated patch which changes linedisc calls from accessing
linesw[] directly to using the ttyld...() functions
The ttyld...() functions ar inline so there is no performance hit.
Notes
Notes:
svn path=/head/; revision=130077
Diffstat (limited to 'sys/dev/nmdm')
-rw-r--r-- | sys/dev/nmdm/nmdm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c index 8855a27ff006..cb25ecb0b694 100644 --- a/sys/dev/nmdm/nmdm.c +++ b/sys/dev/nmdm/nmdm.c @@ -154,12 +154,12 @@ nmdm_task_tty(void *arg, int pending __unused) if (sp->other->dcd) { if (!(tp->t_state & TS_ISOPEN)) { sp->other->dcd = 0; - (void)(*linesw[otp->t_line].l_modem)(otp, 0); + (void)ttyld_modem(otp, 0); } } else { if (tp->t_state & TS_ISOPEN) { sp->other->dcd = 1; - (void)(*linesw[otp->t_line].l_modem)(otp, 1); + (void)ttyld_modem(otp, 1); } } if (tp->t_state & TS_TTSTOP) @@ -169,7 +169,7 @@ nmdm_task_tty(void *arg, int pending __unused) return; c = getc(&tp->t_outq); if (otp->t_state & TS_ISOPEN) - (*linesw[otp->t_line].l_rint)(c, otp); + ttyld_rint(otp, c); } if (tp->t_outq.c_cc == 0) ttwwakeup(tp); @@ -255,7 +255,7 @@ nmdmopen(dev_t dev, int flag, int devtype, struct thread *td) return (EBUSY); } - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = ttyld_open(tp, dev); return (error); } |