Searched refs:bd_lock (Results 1 – 3 of 3) sorted by relevance
| /f-stack/freebsd/net/ |
| H A D | bpfdesc.h | 96 struct mtx bd_lock; /* per-descriptor lock */ member 118 #define BPFD_LOCK(bd) mtx_lock(&(bd)->bd_lock) 119 #define BPFD_UNLOCK(bd) mtx_unlock(&(bd)->bd_lock) 120 #define BPFD_LOCK_ASSERT(bd) mtx_assert(&(bd)->bd_lock, MA_OWNED)
|
| H A D | bpf.c | 968 mtx_init(&d->bd_lock, devtoname(dev), "bpf cdev lock", MTX_DEF); in bpfopen() 969 callout_init_mtx(&d->bd_callout, &d->bd_lock, 0); in bpfopen() 970 knlist_init_mtx(&d->bd_sel.si_note, &d->bd_lock); in bpfopen() 1010 error = mtx_sleep(&d->bd_hbuf_in_use, &d->bd_lock, in bpfread() 1054 error = msleep(d, &d->bd_lock, PRINET|PCATCH, in bpfread() 1301 mtx_sleep(&d->bd_hbuf_in_use, &d->bd_lock, PRINET, in reset_d() 1444 mtx_sleep(&d->bd_hbuf_in_use, &d->bd_lock, in bpfioctl() 2654 mtx_destroy(&d->bd_lock); in bpfd_free()
|
| /f-stack/tools/compat/include/net/ |
| H A D | bpfdesc.h | 95 struct mtx bd_lock; /* per-descriptor lock */ member 117 #define BPFD_LOCK(bd) mtx_lock(&(bd)->bd_lock) 118 #define BPFD_UNLOCK(bd) mtx_unlock(&(bd)->bd_lock) 119 #define BPFD_LOCK_ASSERT(bd) mtx_assert(&(bd)->bd_lock, MA_OWNED)
|