kernel: add support for recursive object destruction (without recursion)

this system makes it possible for an object that forms part of a tree
to be safely recursively destroyed without using recursion.
This commit is contained in:
2026-02-23 18:34:12 +00:00
parent 37ae7aeef7
commit 5690dd5b9c
2 changed files with 26 additions and 4 deletions

View File

@@ -52,7 +52,10 @@ enum object_type_flags {
};
struct object_ops {
kern_status_t (*destroy)(struct object *obj);
kern_status_t (*destroy)(struct object *obj, struct queue *q);
kern_status_t (*destroy_recurse)(
struct queue_entry *entry,
struct object **out);
};
struct object_type {