Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ppbus/ppb_base.c
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
ppb_unlock(device_t bus) | ppb_unlock(device_t bus) | ||||
{ | { | ||||
struct ppb_data *ppb = DEVTOSOFTC(bus); | struct ppb_data *ppb = DEVTOSOFTC(bus); | ||||
mtx_unlock(ppb->ppc_lock); | mtx_unlock(ppb->ppc_lock); | ||||
} | } | ||||
struct mtx * | |||||
ppb_get_lock(device_t bus) | |||||
{ | |||||
struct ppb_data *ppb = DEVTOSOFTC(bus); | |||||
return (ppb->ppc_lock); | |||||
} | |||||
void | void | ||||
_ppb_assert_locked(device_t bus, const char *file, int line) | _ppb_assert_locked(device_t bus, const char *file, int line) | ||||
{ | { | ||||
mtx_assert_(DEVTOSOFTC(bus)->ppc_lock, MA_OWNED, file, line); | mtx_assert_(DEVTOSOFTC(bus)->ppc_lock, MA_OWNED, file, line); | ||||
} | } | ||||
void | void | ||||
Show All 14 Lines |