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

Function bpf_zerocopy_buf_reclaimed

freebsd/net/bpf_zerocopy.c:406–418  ·  view source on GitHub ↗

* Notification from the BPF framework that the free buffer has been been * rotated out of the held position to the free position. This happens when * the user acknowledges the held buffer. */

Source from the content-addressed store, hash-verified

404 * the user acknowledges the held buffer.
405 */
406void
407bpf_zerocopy_buf_reclaimed(struct bpf_d *d)
408{
409 struct zbuf *zb;
410
411 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF,
412 ("bpf_zerocopy_reclaim_buf: not in zbuf mode"));
413
414 KASSERT(d->bd_fbuf != NULL,
415 ("bpf_zerocopy_buf_reclaimed: NULL free buf"));
416 zb = (struct zbuf *)d->bd_fbuf;
417 zb->zb_flags &= ~ZBUF_FLAG_ASSIGNED;
418}
419
420/*
421 * Query from the BPF framework regarding whether the buffer currently in the

Callers 1

bpf_buf_reclaimedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected