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

Function rm_destroy

freebsd/kern/kern_rmlock.c:316–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void
317rm_destroy(struct rmlock *rm)
318{
319
320 rm_assert(rm, RA_UNLOCKED);
321 LIST_FIRST(&rm->rm_activeReaders) = RM_DESTROYED;
322 if (rm->lock_object.lo_flags & LO_SLEEPABLE)
323 sx_destroy(&rm->rm_lock_sx);
324 else
325 mtx_destroy(&rm->rm_lock_mtx);
326 lock_destroy(&rm->lock_object);
327}
328
329int
330rm_wowned(const struct rmlock *rm)

Callers 5

pf_unloadFunction · 0.50
tcp_fastopen_destroyFunction · 0.50
vxlan_socket_destroyFunction · 0.50
vxlan_clone_destroyFunction · 0.50
ng_iface_shutdownFunction · 0.50

Calls 2

lock_destroyFunction · 0.85
sx_destroyFunction · 0.70

Tested by

no test coverage detected