Home
last modified time | relevance | path

Searched refs:trylock (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v5.4/fs/ocfs2/
Dlocks.c27 int ret = 0, level = 0, trylock = 0; in ocfs2_do_flock() local
34 trylock = 1; in ocfs2_do_flock()
64 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
66 if (ret == -EAGAIN && trylock) in ocfs2_do_flock()
Ddlmglue.h173 struct ocfs2_trim_fs_info *info, int trylock);
178 int ocfs2_file_lock(struct file *file, int ex, int trylock);
Ddlmglue.c1968 int ocfs2_file_lock(struct file *file, int ex, int trylock) in ocfs2_file_lock() argument
1971 unsigned int lkm_flags = trylock ? DLM_LKF_NOQUEUE : 0; in ocfs2_file_lock()
2023 if (!trylock || (ret != -EAGAIN)) { in ocfs2_file_lock()
2053 BUG_ON(!trylock); in ocfs2_file_lock()
2060 lockres->l_name, ex, trylock, ret); in ocfs2_file_lock()
2879 struct ocfs2_trim_fs_info *info, int trylock) in ocfs2_trim_fs_lock() argument
2895 trylock ? DLM_LKF_NOQUEUE : 0, 0); in ocfs2_trim_fs_lock()
/Linux-v5.4/include/trace/events/
Dlock.h16 int trylock, int read, int check,
19 TP_ARGS(lock, subclass, trylock, read, check, next_lock, ip),
28 __entry->flags = (trylock ? 1 : 0) | (read ? 2 : 0);
/Linux-v5.4/fs/xfs/
Dxfs_filestream.c141 int err, trylock, nscan; in xfs_filestream_pick_ag() local
152 trylock = XFS_ALLOC_FLAG_TRYLOCK; in xfs_filestream_pick_ag()
160 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in xfs_filestream_pick_ag()
161 if (err && !trylock) { in xfs_filestream_pick_ag()
216 if (trylock != 0) { in xfs_filestream_pick_ag()
217 trylock = 0; in xfs_filestream_pick_ag()
Dxfs_icache.c1247 int trylock = flags & SYNC_TRYLOCK; in xfs_reclaim_inodes_ag() local
1260 if (trylock) { in xfs_reclaim_inodes_ag()
1335 if (trylock && !done) in xfs_reclaim_inodes_ag()
1351 trylock = 0; in xfs_reclaim_inodes_ag()
/Linux-v5.4/drivers/hwspinlock/
Dhwspinlock_internal.h29 int (*trylock)(struct hwspinlock *lock); member
Dsirf_hwspinlock.c51 .trylock = sirf_hwspinlock_trylock,
Dstm32_hwspinlock.c52 .trylock = stm32_hwspinlock_trylock,
Du8500_hsem.c81 .trylock = u8500_hsem_trylock,
Domap_hwspinlock.c69 .trylock = omap_hwspinlock_trylock,
Dqcom_hwspinlock.c63 .trylock = qcom_hwspinlock_trylock,
Dsprd_hwspinlock.c77 .trylock = sprd_hwspinlock_trylock,
Dhwspinlock_core.c132 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock()
492 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
/Linux-v5.4/tools/lib/lockdep/include/liblockdep/
Dcommon.h43 int trylock, int read, int check,
/Linux-v5.4/Documentation/filesystems/
Ddlmfs.txt93 an error has occurred, unless it has been instructed to do a trylock
110 If O_NONBLOCK is also provided and the trylock operation was valid but
/Linux-v5.4/include/linux/
Dlockdep.h269 unsigned int trylock:1; /* 16 bits */ member
349 int trylock, int read, int check,
/Linux-v5.4/kernel/locking/
Dlockdep.c2592 if (!hlock->trylock) in check_prevs_add()
2935 if (!hlock->trylock && hlock->check && in validate_chain()
3551 if (!hlock->trylock) { in mark_usage()
3813 int trylock, int read, int check, int hardirqs_off, in __lock_acquire() argument
3897 hlock->trylock = trylock; in __lock_acquire()
4095 hlock->trylock, in reacquire_held_locks()
4474 int trylock, int read, int check, in lock_acquire() argument
4486 trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip); in lock_acquire()
4487 __lock_acquire(lock, subclass, trylock, read, check, in lock_acquire()
/Linux-v5.4/Documentation/
Dhwspinlock.txt470 int (*trylock)(struct hwspinlock *lock);
477 The ->trylock() callback should make a single attempt to take the lock, and
485 a delay between two successive invocations of ->trylock(). It may **not** sleep.
/Linux-v5.4/Documentation/gpu/
Dvgaarbiter.rst62 trylock <io_state>
Dtodo.rst326 make sure to not call such paths, or trylock everything. Really tricky.
/Linux-v5.4/kernel/
Dfutex.c2800 ktime_t *time, int trylock) in futex_lock_pi() argument
2861 if (trylock) { in futex_lock_pi()
/Linux-v5.4/sound/core/
Dpcm_native.c1113 bool trylock; in snd_pcm_stream_group_ref() local
1122 trylock = nonatomic ? mutex_trylock(&group->mutex) : in snd_pcm_stream_group_ref()
1124 if (trylock) in snd_pcm_stream_group_ref()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_device.c3725 static bool amdgpu_device_lock_adev(struct amdgpu_device *adev, bool trylock) in amdgpu_device_lock_adev() argument
3727 if (trylock) { in amdgpu_device_lock_adev()
/Linux-v5.4/sound/core/oss/
Dpcm_oss.c1076 bool trylock) in snd_pcm_oss_change_params() argument
1081 if (trylock) { in snd_pcm_oss_change_params()

12