From 5304e5be001cfa2ec8a0184164101cd092578eef Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 8 Feb 2026 12:36:32 +0000 Subject: [PATCH] object: rename deref to unref --- include/mango/object.h | 2 +- include/mango/sched.h | 2 +- kernel/object.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mango/object.h b/include/mango/object.h index cb66bb9..5d9ff1e 100644 --- a/include/mango/object.h +++ b/include/mango/object.h @@ -58,7 +58,7 @@ 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_deref(struct object *obj); +extern void object_unref(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); diff --git a/include/mango/sched.h b/include/mango/sched.h index 8b83310..0b3e78d 100644 --- a/include/mango/sched.h +++ b/include/mango/sched.h @@ -179,7 +179,7 @@ static inline struct task *task_ref(struct task *task) { return OBJECT_CAST(struct task, t_base, object_ref(&task->t_base)); } -static inline void task_deref(struct task *task) +static inline void task_unref(struct task *task) { object_deref(&task->t_base); } diff --git a/kernel/object.c b/kernel/object.c index 3f40f57..1cde080 100644 --- a/kernel/object.c +++ b/kernel/object.c @@ -71,7 +71,7 @@ struct object *object_ref(struct object *obj) return obj; } -void object_deref(struct object *obj) +void object_unref(struct object *obj) { unsigned long flags; spin_lock_irqsave(&obj->ob_lock, &flags);