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

Function kobj_class_compile_static

freebsd/kern/subr_kobj.c:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void
166kobj_class_compile_static(kobj_class_t cls, kobj_ops_t ops)
167{
168
169 KASSERT(kobj_mutex_inited == 0,
170 ("%s: only supported during early cycles", __func__));
171
172 /*
173 * Increment refs to make sure that the ops table is not freed.
174 */
175 cls->refs++;
176 kobj_class_compile_common(cls, ops);
177}
178
179static kobj_method_t*
180kobj_lookup_method_class(kobj_class_t cls, kobjop_desc_t desc)

Callers 2

Calls 1

Tested by

no test coverage detected