| 2856 | } |
| 2857 | |
| 2858 | static void |
| 2859 | bpf_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 |
nothing calls this directly
no test coverage detected