object: add functions to track handle allocation

This commit is contained in:
2026-02-08 12:37:08 +00:00
parent 5304e5be00
commit 4de1463e7c
2 changed files with 31 additions and 7 deletions

View File

@@ -59,6 +59,8 @@ extern kern_status_t object_type_unregister(struct object_type *p);
extern struct object *object_create(struct object_type *type);
extern struct object *object_ref(struct object *obj);
extern void object_unref(struct object *obj);
extern void object_add_handle(struct object *obj);
extern void object_remove_handle(struct object *obj);
extern void object_lock(struct object *obj);
extern void object_unlock(struct object *obj);
extern void object_lock_irqsave(struct object *obj, unsigned long *flags);