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

Function preload_dump

freebsd/kern/subr_module.c:537–553  ·  view source on GitHub ↗

* Print the preloaded data to the console. Called from the machine-dependent * initialization routines, e.g. hammer_time(). */

Source from the content-addressed store, hash-verified

535 * initialization routines, e.g. hammer_time().
536 */
537void
538preload_dump(void)
539{
540 char buf[512];
541 struct sbuf sb;
542
543 /*
544 * This function is expected to be called before malloc is available,
545 * so use a static buffer and struct sbuf.
546 */
547 sbuf_new(&sb, buf, sizeof(buf), SBUF_FIXEDLEN);
548 sbuf_set_drain(&sb, sbuf_printf_drain, NULL);
549 preload_dump_internal(&sb);
550
551 sbuf_finish(&sb);
552 sbuf_delete(&sb);
553}
554
555static int
556sysctl_preload_dump(SYSCTL_HANDLER_ARGS)

Callers 2

hammer_timeFunction · 0.85
initarmFunction · 0.85

Calls 5

sbuf_newFunction · 0.85
sbuf_set_drainFunction · 0.85
preload_dump_internalFunction · 0.85
sbuf_finishFunction · 0.85
sbuf_deleteFunction · 0.85

Tested by

no test coverage detected