Lines Matching full:object
3 * Landlock LSM - Object management
18 #include "object.h"
39 * The caller must own the object (i.e. thanks to object->usage) to safely put
42 void landlock_put_object(struct landlock_object *const object) in landlock_put_object() argument
45 * The call to @object->underops->release(object) might sleep, e.g. in landlock_put_object()
49 if (!object) in landlock_put_object()
53 * If the @object's refcount cannot drop to zero, we can just decrement in landlock_put_object()
55 * happen under @object->lock for synchronization with things like in landlock_put_object()
58 if (refcount_dec_and_lock(&object->usage, &object->lock)) { in landlock_put_object()
59 __acquire(&object->lock); in landlock_put_object()
61 * With @object->lock initially held, remove the reference from in landlock_put_object()
62 * @object->underobj to @object (if it still exists). in landlock_put_object()
64 object->underops->release(object); in landlock_put_object()
65 kfree_rcu(object, rcu_free); in landlock_put_object()