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

Function _blockcount_wait

freebsd/sys/blockcount.h:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static __inline void
80_blockcount_wait(blockcount_t *bc, struct lock_object *lo, const char *wmesg,
81 int prio)
82{
83 KASSERT((prio & ~PRIMASK) == 0, ("%s: invalid prio %x", __func__, prio));
84
85 while (_blockcount_sleep(bc, lo, wmesg, prio) == EAGAIN)
86 ;
87}
88
89#define blockcount_sleep(bc, lo, wmesg, prio) \
90 _blockcount_sleep((bc), (struct lock_object *)(lo), (wmesg), (prio))

Callers

nothing calls this directly

Calls 1

_blockcount_sleepFunction · 0.85

Tested by

no test coverage detected