* Allow the buffer model to indicate that the current store buffer is * immutable, regardless of the appearance of space. Return (1) if the * buffer is writable, and (0) if not. */
| 446 | * buffer is writable, and (0) if not. |
| 447 | */ |
| 448 | static int |
| 449 | bpf_canwritebuf(struct bpf_d *d) |
| 450 | { |
| 451 | BPFD_LOCK_ASSERT(d); |
| 452 | |
| 453 | switch (d->bd_bufmode) { |
| 454 | case BPF_BUFMODE_ZBUF: |
| 455 | return (bpf_zerocopy_canwritebuf(d)); |
| 456 | } |
| 457 | return (1); |
| 458 | } |
| 459 | |
| 460 | /* |
| 461 | * Notify buffer model that an attempt to write to the store buffer has |
no test coverage detected