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

Function cngetc

freebsd/kern/kern_cons.c:414–426  ·  view source on GitHub ↗

* Low level console routines. */

Source from the content-addressed store, hash-verified

412 * Low level console routines.
413 */
414int
415cngetc(void)
416{
417 int c;
418
419 if (cn_mute)
420 return (-1);
421 while ((c = cncheckc()) == -1)
422 cpu_spinwait();
423 if (c == '\r')
424 c = '\n'; /* console input is always ICRNL */
425 return (c);
426}
427
428int
429cncheckc(void)

Callers 8

start_all_apsFunction · 0.85
cngetsFunction · 0.85
cnputcFunction · 0.85
shutdown_haltFunction · 0.85
shutdown_panicFunction · 0.85
db_readlineFunction · 0.85
db_pagerFunction · 0.85
vm_object.cFile · 0.85

Calls 1

cncheckcFunction · 0.85

Tested by

no test coverage detected