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

Function cncheckc

freebsd/kern/kern_cons.c:428–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428int
429cncheckc(void)
430{
431 struct cn_device *cnd;
432 struct consdev *cn;
433 int c;
434
435 if (cn_mute)
436 return (-1);
437 STAILQ_FOREACH(cnd, &cn_devlist, cnd_next) {
438 cn = cnd->cnd_cn;
439 if (!kdb_active || !(cn->cn_flags & CN_FLAG_NODEBUG)) {
440 c = cn->cn_ops->cn_getc(cn);
441 if (c != -1)
442 return (c);
443 }
444 }
445 return (-1);
446}
447
448void
449cngets(char *cp, size_t size, int visible)

Callers 10

blk_writeFunction · 0.85
write_bufferFunction · 0.85
blk_writeFunction · 0.85
blk_writeFunction · 0.85
blk_writeFunction · 0.85
kern_ktr.cFile · 0.85
dumpsys_cb_dumpdataFunction · 0.85
cngetcFunction · 0.85
shutdown_panicFunction · 0.85
db_resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected