Documented in 1 files:

Defined in 2 files as a function:

Referenced in 10 files:

Smatch caller information:

fs/namei.c get_write_access() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

fs/overlayfs/inode.c get_write_access() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock

mm/kasan/kasan_test_c.c kasan_atomics_helper() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
DATA_SOURCE 0 v $1
NOCHECK_CALL

fs/kernfs/dir.c kernfs_get_active() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

mm/vma.c mapping_map_writable() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctx->ring_lock
HALF_LOCKED2 &mm->mmap_lock

fs/nfsd/vfs.c get_write_access() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
HALF_LOCKED2 &fhp->fh_dentry->d_lockref.lock

block/bdev.c bdev_freeze() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
LOCK2 &bdev->bd_fsfreeze_mutex
HALF_LOCKED2 &md->suspend_lock
TYPE_LOCK (struct block_device)->bd_fsfreeze_mutex

sound/core/pcm_lib.c __snd_pcm_lib_xfer() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &runtime->oss.params_lock

kernel/events/core.c exclusive_event_init() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max

fs/gfs2/file.c get_write_access() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/open.c get_write_access() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/hwtracing/intel_th/msu.c intel_th_msc_activate() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwtracing/intel_th/msu.c intel_th_msc_mmap() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ipcp->lock

drivers/hwtracing/intel_th/msu.c intel_th_msc_read() -> atomic_inc_unless_negative()

Type Parameter Key Value
PARAM_VALUE 0 v 4096-ptr_max

fs/proc/inode.c use_pde() -> atomic_inc_unless_negative()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING