| 492 | } |
| 493 | |
| 494 | static void |
| 495 | bpf_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 | |
| 510 | static int |
| 511 | bpf_uiomove(struct bpf_d *d, caddr_t buf, u_int len, struct uio *uio) |
no test coverage detected