Lines 439-448
ngt_rint_bypass(struct tty *tp, const void *buf, size_t len)
Link Here
|
439 |
* Odd, we have changed from non-bypass to bypass. It is |
439 |
* Odd, we have changed from non-bypass to bypass. It is |
440 |
* unlikely but not impossible, flush the data first. |
440 |
* unlikely but not impossible, flush the data first. |
441 |
*/ |
441 |
*/ |
442 |
NG_SEND_DATA_ONLY(error, sc->hook, sc->m); |
442 |
NG_SEND_DATA_FLAGS(error, sc->hook, sc->m, NG_QUEUE); |
443 |
sc->m = NULL; |
443 |
sc->m = NULL; |
444 |
} |
444 |
} |
445 |
NG_SEND_DATA_ONLY(error, sc->hook, m); |
445 |
NG_SEND_DATA_FLAGS(error, sc->hook, m, NG_QUEUE); |
446 |
|
446 |
|
447 |
return (total); |
447 |
return (total); |
448 |
} |
448 |
} |
Lines 495-501
ngt_rint(struct tty *tp, char c, int flags)
Link Here
|
495 |
/* Ship off mbuf if it's time */ |
495 |
/* Ship off mbuf if it's time */ |
496 |
if (sc->hotchar == -1 || c == sc->hotchar || m->m_len >= MHLEN) { |
496 |
if (sc->hotchar == -1 || c == sc->hotchar || m->m_len >= MHLEN) { |
497 |
sc->m = NULL; |
497 |
sc->m = NULL; |
498 |
NG_SEND_DATA_ONLY(error, sc->hook, m); /* Will queue */ |
498 |
NG_SEND_DATA_FLAGS(error, sc->hook, m, NG_QUEUE); |
499 |
} |
499 |
} |
500 |
|
500 |
|
501 |
return (error); |
501 |
return (error); |