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

Function bpf_free

freebsd/net/bpf.c:494–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494static void
495bpf_free(struct bpf_d *d)
496{
497
498 switch (d->bd_bufmode) {
499 case BPF_BUFMODE_BUFFER:
500 return (bpf_buffer_free(d));
501
502 case BPF_BUFMODE_ZBUF:
503 return (bpf_zerocopy_free(d));
504
505 default:
506 panic("bpf_buf_free");
507 }
508}
509
510static int
511bpf_uiomove(struct bpf_d *d, caddr_t buf, u_int len, struct uio *uio)

Callers 1

bpfd_freeFunction · 0.85

Calls 3

bpf_buffer_freeFunction · 0.85
bpf_zerocopy_freeFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected