Lines Matching refs:ops
98 kobj_class_compile_common(kobj_class_t cls, kobj_ops_t ops)
106 if (cls->ops)
118 * Then initialise the ops table.
121 ops->cache[i] = &null_method;
122 ops->cls = cls;
123 cls->ops = ops;
129 kobj_ops_t ops;
133 ops = malloc(sizeof(struct kobj_ops), M_KOBJ, mflags);
134 if (ops == NULL)
143 if (cls->ops) {
145 free(ops, M_KOBJ);
148 kobj_class_compile_common(cls, ops);
163 kobj_class_compile_static(kobj_class_t cls, kobj_ops_t ops)
170 * Increment refs to make sure that the ops table is not freed.
173 kobj_class_compile_common(cls, ops);
232 void* ops = NULL;
250 ops = cls->ops;
251 cls->ops = NULL;
256 if (ops)
257 free(ops, M_KOBJ);
264 obj->ops = cls->ops;
274 while (cls->ops == NULL) {
329 kobj_class_t cls = obj->ops->cls;
346 obj->ops = NULL;