Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

io_uring/rsrc.c hpage_acct_ref() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 4197568
DATA_SOURCE 1 index $1
RX_PATH
HALF_LOCKED2 &ctx->uring_lock

fs/btrfs/delayed-inode.c btrfs_get_or_create_delayed_node() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3136
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/inode.c btrfs_add_inode_to_root() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 index 0,2-u64max
PARAM_VALUE 2 gfp 3136
CAPPED_DATA 1 index 1
CAPPED_DATA 1 index 1
RX_PATH
TASK_NOT_RUNNING

drivers/iommu/iommufd/io_pagetable.c iopt_table_add_domain() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3264
LOCK2 &ioas->mutex
LOCK2 &iopt->domains_rwsem
LOCK2 &iopt->iova_rwsem
TYPE_LOCK (struct io_pagetable)->domains_rwsem
TYPE_LOCK (struct io_pagetable)->iova_rwsem
TYPE_LOCK (struct iommufd_ioas)->mutex

drivers/tee/tee_heap.c alloc_dma_heap() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 810771289017638912
PARAM_VALUE 1 index 1-3
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 1 index $1

drivers/net/ethernet/intel/ice/ice_adapter.c ice_adapter_get() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 6352305162180497408
PARAM_VALUE 1 index 0,9223372036854798236
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 1 index r ice_adapter_xa_index
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 index 0[c]
LOCK2 _T->lock
HALF_LOCKED2 &pdev->dev.mutex

drivers/infiniband/core/device.c add_one_compat_dev() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &device->compat_devs_mutex
LOCK2 global &devices_rwsem
LOCK2 global &rdma_nets_rwsem
HALF_LOCKED2 global &pernet_ops_rwsem
TYPE_LOCK (struct ib_device)->compat_devs_mutex

fs/btrfs/qgroup.c btrfs_qgroup_trace_extent() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3136
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &eb->lock
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &root_eb->lock

drivers/iommu/iommu.c iommu_replace_group_handle() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 index 0
PARAM_VALUE 2 gfp 3264
LOCK2 &group->mutex
LOCK2 &igroup->lock
HALF_LOCKED2 &ioas->mutex
HALF_LOCKED2 &vdev->dev_set->lock
TYPE_LOCK (struct iommu_group)->mutex
TYPE_LOCK (struct iommufd_group)->lock

lib/test_xarray.c check_align_2() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 index 0
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 xa $0
STR_LEN 0 xa 14
STR_LEN 0 xa 14

lib/test_xarray.c check_reserve() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 5024146686711472128,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 1 index 12345678
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_reserve() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 5024146686711472128,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 index 12345678
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_reserve() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 5024146686711472128,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 index 12345678
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_reserve() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 5024146686711472128,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 index 12345678
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_reserve() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 5024146686711472128,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 index 6
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 xa $0

arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_vm_set_mem_attributes() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 index 0-4503599627370494
PARAM_VALUE 2 gfp 4197568
CAPPED_DATA 1 index 1
CAPPED_DATA 1 index 1
NOSPEC 1 index
USER_DATA 1 index 0-524287[c]
UNITS 1 index unit_page
LOCK2 &kvm->slots_lock
TYPE_LOCK (struct kvm)->slots_lock

fs/btrfs/delayed-ref.c add_delayed_ref() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3136
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &trans->fs_info->chunk_mutex
HALF_LOCKED2 &trans->fs_info->commit_root_sem
HALF_LOCKED2 &trans->fs_info->fs_devices->device_list_mutex
HALF_LOCKED2 &trans->fs_info->fs_roots_radix_lock
HALF_LOCKED2 &trans->fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &trans->fs_info->qgroup_lock
HALF_LOCKED2 &trans->fs_info->unused_bg_unpin_mutex
HALF_LOCKED2 &trans->transaction->cache_write_mutex
HALF_LOCKED2 &trans->transaction->delayed_refs.lock

fs/btrfs/delayed-ref.c add_delayed_ref() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3136
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &trans->fs_info->chunk_mutex
HALF_LOCKED2 &trans->fs_info->commit_root_sem
HALF_LOCKED2 &trans->fs_info->fs_devices->device_list_mutex
HALF_LOCKED2 &trans->fs_info->fs_roots_radix_lock
HALF_LOCKED2 &trans->fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &trans->fs_info->qgroup_lock
HALF_LOCKED2 &trans->fs_info->unused_bg_unpin_mutex
HALF_LOCKED2 &trans->transaction->cache_write_mutex
HALF_LOCKED2 &trans->transaction->delayed_refs.lock

fs/btrfs/delayed-ref.c btrfs_add_delayed_extent_op() -> xa_reserve()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 2 gfp 3136
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &trans->fs_info->commit_root_sem
HALF_LOCKED2 &trans->fs_info->fs_devices->device_list_mutex
HALF_LOCKED2 &trans->fs_info->fs_roots_radix_lock
HALF_LOCKED2 &trans->fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &trans->fs_info->qgroup_lock
HALF_LOCKED2 &trans->fs_info->unused_bg_unpin_mutex
HALF_LOCKED2 &trans->transaction->delayed_refs.lock