Lines Matching full:owner
62 pid_t owner; member
106 __u32 owner; member
230 static bool is_signaled(struct ntsync_obj *obj, __u32 owner) in is_signaled() argument
238 if (obj->u.mutex.owner && obj->u.mutex.owner != owner) in is_signaled()
272 if (!is_signaled(q->entries[i].obj, q->owner)) { in try_wake_all()
291 obj->u.mutex.owner = q->owner; in try_wake_all()
353 if (mutex->u.mutex.owner && mutex->u.mutex.owner != q->owner) in try_wake_any_mutex()
361 mutex->u.mutex.owner = q->owner; in try_wake_any_mutex()
441 * Actually change the mutex state, returning -EPERM if not the owner.
448 if (mutex->u.mutex.owner != args->owner) in unlock_mutex_state()
452 mutex->u.mutex.owner = 0; in unlock_mutex_state()
467 if (!args.owner) in ntsync_mutex_unlock()
492 * Actually change the mutex state to mark its owner as dead,
493 * returning -EPERM if not the owner.
495 static int kill_mutex_state(struct ntsync_obj *mutex, __u32 owner) in kill_mutex_state() argument
499 if (mutex->u.mutex.owner != owner) in kill_mutex_state()
503 mutex->u.mutex.owner = 0; in kill_mutex_state()
511 __u32 owner; in ntsync_mutex_kill() local
515 if (get_user(owner, (__u32 __user *)argp)) in ntsync_mutex_kill()
517 if (!owner) in ntsync_mutex_kill()
525 ret = kill_mutex_state(mutex, owner); in ntsync_mutex_kill()
622 args.owner = mutex->u.mutex.owner; in ntsync_mutex_read()
697 .owner = THIS_MODULE,
774 if (!args.owner != !args.count) in ntsync_create_mutex()
781 mutex->u.mutex.owner = args.owner; in ntsync_create_mutex()
900 q->owner = args->owner; in setup_wait()
1200 .owner = THIS_MODULE,