object: rename deref to unref

This commit is contained in:
2026-02-08 12:36:32 +00:00
parent 0853cff56b
commit 5304e5be00
3 changed files with 3 additions and 3 deletions

View File

@@ -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_create(struct object_type *type);
extern struct object *object_ref(struct object *obj); 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_lock(struct object *obj);
extern void object_unlock(struct object *obj); extern void object_unlock(struct object *obj);
extern void object_lock_irqsave(struct object *obj, unsigned long *flags); extern void object_lock_irqsave(struct object *obj, unsigned long *flags);

View File

@@ -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)); 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); object_deref(&task->t_base);
} }

View File

@@ -71,7 +71,7 @@ struct object *object_ref(struct object *obj)
return obj; return obj;
} }
void object_deref(struct object *obj) void object_unref(struct object *obj)
{ {
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&obj->ob_lock, &flags); spin_lock_irqsave(&obj->ob_lock, &flags);