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

Function rms_init

freebsd/kern/kern_rmlock.c:982–992  ·  view source on GitHub ↗

* Public API */

Source from the content-addressed store, hash-verified

980 * Public API
981 */
982void
983rms_init(struct rmslock *rms, const char *name)
984{
985
986 rms->owner = RMS_NOOWNER;
987 rms->writers = 0;
988 rms->readers = 0;
989 rms->debug_readers = 0;
990 mtx_init(&rms->mtx, name, NULL, MTX_DEF | MTX_NEW);
991 rms->pcpu = uma_zalloc_pcpu(pcpu_zone_8, M_WAITOK | M_ZERO);
992}
993
994void
995rms_destroy(struct rmslock *rms)

Callers 1

mac_initFunction · 0.85

Calls 2

mtx_initFunction · 0.85
uma_zalloc_pcpuFunction · 0.50

Tested by

no test coverage detected