Lines Matching +full:current +full:- +full:rotate
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
57 * sbuf (store) - Receive interrupt puts packets here.
58 * hbuf (hold) - When sbuf is full, put buffer here and
60 * fbuf (free) - When read is done, put buffer here.
66 int bd_hbuf_in_use; /* don't rotate buffers */
67 int bd_slen; /* current length of store buffer */
68 int bd_hlen; /* current length of hold buffer */
83 u_char bd_writer; /* non-zero if d is writer-only */
88 int bd_async; /* non-zero if packet reception should generate signal */
93 struct mtx bd_lock; /* per-descriptor lock */
99 u_int bd_bufmode; /* Current buffer mode. */
104 u_char bd_compat32; /* 32-bit stream on LP64 system */
115 #define BPFD_LOCK(bd) mtx_lock(&(bd)->bd_lock)
116 #define BPFD_UNLOCK(bd) mtx_unlock(&(bd)->bd_lock)
117 #define BPFD_LOCK_ASSERT(bd) mtx_assert(&(bd)->bd_lock, MA_OWNED)
119 #define BPF_PID_REFRESH(bd, td) (bd)->bd_pid = (td)->td_proc->p_pid
120 #define BPF_PID_REFRESH_CUR(bd) (bd)->bd_pid = curthread->td_proc->p_pid