Lines Matching defs:obj
242 kobj_t obj;
247 obj = bsd_malloc(cls->size, mtype, mflags | M_ZERO);
248 if (!obj)
250 kobj_init(obj, cls);
252 return obj;
256 kobj_init_common(kobj_t obj, kobj_class_t cls)
259 obj->ops = cls->ops;
264 kobj_init(kobj_t obj, kobj_class_t cls)
284 kobj_init_common(obj, cls);
290 kobj_init_static(kobj_t obj, kobj_class_t cls)
296 kobj_init_common(obj, cls);
300 kobj_delete(kobj_t obj, struct malloc_type *mtype)
302 kobj_class_t cls = obj->ops->cls;
319 obj->ops = NULL;
321 bsd_free(obj, mtype);