MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ttyinq_unputchar

Function ttyinq_unputchar

freebsd/kern/tty_inq.c:412–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void
413ttyinq_unputchar(struct ttyinq *ti)
414{
415
416 MPASS(ti->ti_linestart < ti->ti_end);
417
418 if (--ti->ti_end % TTYINQ_DATASIZE == 0) {
419 /* Roll back to the previous block. */
420 ti->ti_lastblock = ti->ti_lastblock->tib_prev;
421 /*
422 * This can only fail if we are unputchar()'ing the
423 * first character in the queue.
424 */
425 MPASS((ti->ti_lastblock == NULL) == (ti->ti_end == 0));
426 }
427}
428
429void
430ttyinq_reprintpos_set(struct ttyinq *ti)

Callers 1

ttydisc_rubcharFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected