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

Function pfil_init

freebsd/net/pfil.c:479–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477
478#ifndef FSTACK
479static void
480pfil_init(const void *unused __unused)
481{
482 struct make_dev_args args;
483 int error;
484
485 make_dev_args_init(&args);
486 args.mda_flags = MAKEDEV_WAITOK | MAKEDEV_CHECKNAME;
487 args.mda_devsw = &pfil_cdevsw;
488 args.mda_uid = UID_ROOT;
489 args.mda_gid = GID_WHEEL;
490 args.mda_mode = 0600;
491 error = make_dev_s(&args, &pfil_dev, PFILDEV);
492 KASSERT(error == 0, ("%s: failed to create dev: %d", __func__, error));
493}
494/*
495 * Make sure the pfil bits are first before any possible subsystem which
496 * might piggyback on the SI_SUB_PROTO_PFIL.

Callers

nothing calls this directly

Calls 1

make_dev_sFunction · 0.85

Tested by

no test coverage detected