Documented in 2 files:

Defined in 1 files as a prototype:

Defined in 3 files as a function:

Referenced in 13 files:

Smatch caller information:

drivers/iommu/intel/iommu.c device_rbtree_find() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 278707816907972608
BUF_SIZE 0 key 2
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &iommu->device_rbtree_lock
LOCK2 flags
HALF_LOCKED2 &iommu->iopf_lock
HALF_LOCKED2 &qi->q_lock
TYPE_LOCK (struct intel_iommu)->device_rbtree_lock

drivers/infiniband/core/frmr_pools.c ib_frmr_pool_find() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 2960828979538157568
DATA_SOURCE 0 key $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &pools->rb_lock
TYPE_LOCK (struct ib_frmr_pools)->rb_lock

fs/btrfs/delayed-inode.c __btrfs_lookup_delayed_item() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 5088384983365218304
BUF_SIZE 0 key 8
DATA_SOURCE 1 tree $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &node->mutex
TYPE_LOCK (struct btrfs_delayed_node)->mutex

fs/btrfs/ulist.c ulist_rbtree_search() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 5058648978564313088
BUF_SIZE 0 key 8
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/qgroup.c btrfs_qgroup_trace_subtree_after_cow() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 5876897620944592896
BUF_SIZE 0 key 8
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 *key
LOCK2 &blocks->lock
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &subvol_eb->lock
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
TYPE_LOCK (struct btrfs_qgroup_swapped_blocks)->lock

fs/btrfs/qgroup.c find_qgroup_rb() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 1605379434278391808
BUF_SIZE 0 key 8
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &fs_info->qgroup_ioctl_lock
HALF_LOCKED2 &fs_info->qgroup_lock

fs/btrfs/disk-io.c btrfs_global_root() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 0 key 180910611101868032,2662195944496541696,2883043171751084032,4969861102445449216,5164093438883905536,6094080447114330112,7235109121912811520
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 2377907278171803648
DATA_SOURCE 0 key $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->global_root_lock
TYPE_LOCK (struct btrfs_fs_info)->global_root_lock

fs/btrfs/ref-verify.c lookup_block_entry() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 276070045792227328
BUF_SIZE 0 key 8
DATA_SOURCE 1 tree $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 *key
LOCK2 &fs_info->ref_verify_lock
HALF_LOCKED2 &buf->lock
TYPE_LOCK (struct btrfs_fs_info)->ref_verify_lock

fs/btrfs/ref-verify.c lookup_root_entry() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 2057594598688284672
BUF_SIZE 0 key 8
DATA_SOURCE 1 tree $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->ref_verify_lock
TYPE_LOCK (struct btrfs_fs_info)->ref_verify_lock

arch/x86/events/intel/uncore_discovery.c search_uncore_discovery_type() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 1 tree 5952941395042082816
PARAM_VALUE 2 cmp 5302028766858424320
BUF_SIZE 0 key 2
PREEMPT_ADD

fs/btrfs/send.c record_check_dir_ref_in_tree() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 2 cmp 2611084541115293696
DATA_SOURCE 0 key $1
DATA_SOURCE 1 tree $0

fs/btrfs/send.c record_deleted_ref_if_needed() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 0 key 60235268513796096
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 3775294800436936704
BUF_SIZE 0 key 88

fs/btrfs/send.c record_new_ref_if_needed() -> rb_find()

Type Parameter Key Value
PARAM_VALUE 0 key 5418661668894728192
PARAM_VALUE 1 tree 4096-ptr_max
PARAM_VALUE 2 cmp 3775294800436936704
BUF_SIZE 0 key 88