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

Function bpf_program_buffer_free

freebsd/net/bpf.c:345–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345static void
346bpf_program_buffer_free(epoch_context_t ctx)
347{
348 struct bpf_program_buffer *ptr;
349
350 ptr = __containerof(ctx, struct bpf_program_buffer, epoch_ctx);
351#ifdef BPF_JITTER
352 if (ptr->func != NULL)
353 bpf_destroy_jit_filter(ptr->func);
354#endif
355 free(ptr, M_BPF);
356}
357
358/*
359 * Wrapper functions for various buffering methods. If the set of buffer

Callers 1

bpfd_freeFunction · 0.85

Calls 2

bpf_destroy_jit_filterFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected