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

Function bpf_drvinit

freebsd/net/bpf.c:2858–2869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2856}
2857
2858static void
2859bpf_drvinit(void *unused)
2860{
2861 struct cdev *dev;
2862
2863 sx_init(&bpf_sx, "bpf global lock");
2864 CK_LIST_INIT(&bpf_iflist);
2865
2866 dev = make_dev(&bpf_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "bpf");
2867 /* For compatibility */
2868 make_dev_alias(dev, "bpf0");
2869}
2870
2871/*
2872 * Zero out the various packet counters associated with all of the bpf

Callers

nothing calls this directly

Calls 2

make_devFunction · 0.85
make_dev_aliasFunction · 0.85

Tested by

no test coverage detected