Home
last modified time | relevance | path

Searched refs:srclass (Results 1 – 2 of 2) sorted by relevance

/dragonfly/sys/kern/
HDkern_sysref.c106 sysref_init(struct sysref *sr, struct sysref_class *srclass) in sysref_init() argument
118 sr->srclass = srclass; in sysref_init()
133 sysref_alloc(struct sysref_class *srclass) in sysref_alloc() argument
142 if (srclass->oc == NULL) { in sysref_alloc()
143 KKASSERT(srclass->mtype != NULL); in sysref_alloc()
144 srclass->oc = objcache_create_mbacked( in sysref_alloc()
145 srclass->mtype, srclass->objsize, in sysref_alloc()
146 0, srclass->nom_cache, in sysref_alloc()
147 sysref_ctor, sysref_dtor, srclass); in sysref_alloc()
153 data = objcache_get(srclass->oc, M_WAITOK); in sysref_alloc()
[all …]
/dragonfly/sys/sys/
HDsysref.h112 struct sysref_class *srclass; /* type of resource and API */ member