Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 30 files:

Smatch caller information:

drivers/mtd/mtdswap.c mtdswap_check_counts() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 1109708654348427264
PARAM_VALUE 0 root->rb_node 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &mtd_table_mutex

drivers/mtd/mtdswap.c mtdswap_show() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
BUF_SIZE 0 root 8
RX_PATH
TASK_NOT_RUNNING
LOCK2 &d->mbd_dev->lock
LOCK2 &s->lock
TYPE_LOCK (struct mtd_blktrans_dev)->lock
TYPE_LOCK (struct seq_file)->lock

lib/rbtree_test.c check() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 8350103880887631872
PARAM_VALUE 0 root->rb_node 0,4096-ptr_max

net/sched/sch_netem.c netem_enqueue() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

fs/btrfs/volumes.c find_next_chunk() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->chunk_mutex
LOCK2 &fs_info->mapping_tree_lock
HALF_LOCKED2 &sb->s_umount
HALF_LOCKED2 global &uuid_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex
TYPE_LOCK (struct btrfs_fs_info)->mapping_tree_lock

drivers/gpu/buddy.c __alloc_contig_try_harder() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c __force_merge() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c rbtree_last_free_block() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
DATA_SOURCE 0 root $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

net/ipv4/tcp.c tcp_tx_timestamp() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max

net/ipv4/tcp_input.c tcp_collapse_ofo_queue() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &sk->sk_lock.slock
HALF_LOCKED2 sk

fs/jffs2/readinode.c jffs2_build_inode_fragtree() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 1212094306357284864
MEM_ZERO 0 root
RX_PATH
TASK_NOT_RUNNING
LOCK2 &f->sem
HALF_LOCKED2 &c->alloc_sem
HALF_LOCKED2 &c->wbuf_sem
TYPE_LOCK (struct jffs2_inode_info)->sem

fs/jffs2/readinode.c jffs2_build_inode_fragtree() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 967646738142523392
PARAM_VALUE 0 root->rb_node 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &f->sem
HALF_LOCKED2 &c->alloc_sem
HALF_LOCKED2 &c->wbuf_sem
TYPE_LOCK (struct jffs2_inode_info)->sem

arch/x86/kvm/mmu/mmu.c kvm_memslot_iter_start() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &kvm->mmu_lock
HALF_LOCKED2 &kvm->arch.apic_map_lock
HALF_LOCKED2 &kvm->arch.apicv_update_lock
HALF_LOCKED2 &kvm->lock
HALF_LOCKED2 &kvm->srcu
TYPE_LOCK (struct kvm)->mmu_lock

fs/jffs2/nodelist.c frag_last() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
DATA_SOURCE 0 root $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &f->sem
HALF_LOCKED2 &c->alloc_sem
TYPE_LOCK (struct jffs2_inode_info)->sem

net/sched/sch_hfsc.c init_vf() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh

fs/btrfs/free-space-cache.c __btrfs_remove_free_space_cache() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &caching_ctl->mutex
HALF_LOCKED2 &ctl->tree_lock
HALF_LOCKED2 &fs_info->commit_root_sem
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tmp_ctl.tree_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

fs/btrfs/free-space-cache.c __btrfs_remove_free_space_cache() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &caching_ctl->mutex
HALF_LOCKED2 &ctl->tree_lock
HALF_LOCKED2 &fs_info->commit_root_sem
HALF_LOCKED2 &tmp_ctl.tree_lock
TYPE_LOCK (struct btrfs_free_space_ctl)->tree_lock

kernel/sched/fair.c __pick_last_entity() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 rcu_read
LOCK2 rq
HALF_LOCKED2 &m->lock

fs/btrfs/block-group.c btrfs_free_block_groups() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &info->block_group_cache_lock
TYPE_LOCK (struct btrfs_fs_info)->block_group_cache_lock

fs/btrfs/block-group.c btrfs_free_block_groups() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &info->block_group_cache_lock
TYPE_LOCK (struct btrfs_fs_info)->block_group_cache_lock

fs/ntfs3/bitmap.c wnd_add_free_ext() -> rb_last()

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

fs/ntfs3/bitmap.c wnd_remove_free_ext() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &wnd->rw_lock

fs/ocfs2/uptodate.c ocfs2_purge_copied_metadata_tree() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 8475198778356072448
DATA_SOURCE 0 root $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/uptodate.c ocfs2_purge_copied_metadata_tree() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 8475198778356072448
PARAM_VALUE 0 root->rb_node 4096-ptr_max
DATA_SOURCE 0 root $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/jffs2/gc.c frag_last() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
DATA_SOURCE 0 root $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &c->alloc_sem
LOCK2 &f->sem
HALF_LOCKED2 &c->wbuf_sem
TYPE_LOCK (struct jffs2_inode_info)->sem
TYPE_LOCK (struct jffs2_sb_info)->alloc_sem

fs/ocfs2/reservations.c ocfs2_resmap_clear_all_resv() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &local_alloc_inode->i_rwsem
LOCK2 global &resv_lock
HALF_LOCKED2 &alloc_inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/reservations.c ocfs2_resmap_clear_all_resv() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &local_alloc_inode->i_rwsem
LOCK2 global &resv_lock
HALF_LOCKED2 &alloc_inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c svm_range_get_range_boundaries() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &mm->mmap_lock
LOCK2 &svms->lock
TYPE_LOCK (struct mm_struct)->mmap_lock
TYPE_LOCK (struct svm_range_list)->lock

net/netfilter/nft_set_rbtree.c nft_rbtree_adjust_maxsize() -> rb_last()

Type Parameter Key Value

net/netfilter/nft_set_rbtree.c nft_rbtree_commit() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nft_net->commit_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read

fs/ocfs2/refcounttree.c ocfs2_purge_refcount_trees() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
BUF_SIZE 0 root 8
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/refcounttree.c ocfs2_purge_refcount_trees() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
BUF_SIZE 0 root 8
RX_PATH
TASK_NOT_RUNNING

drivers/mtd/ubi/wl.c find_mean_wl_entry() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 4096-ptr_max
DATA_SOURCE 0 root $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ubi->fm_eba_sem
LOCK2 &ubi->fm_protect
LOCK2 &ubi->wl_lock
LOCK2 &ubi->work_sem
HALF_LOCKED2 &le->mutex
HALF_LOCKED2 &ubi->device_mutex
HALF_LOCKED2 global &ubi_devices_mutex
TYPE_LOCK (struct ubi_device)->fm_eba_sem
TYPE_LOCK (struct ubi_device)->fm_protect
TYPE_LOCK (struct ubi_device)->wl_lock
TYPE_LOCK (struct ubi_device)->work_sem

drivers/md/bcache/btree.c bch_refill_keybuf() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PARAM_VALUE 0 root->rb_node 0,4096-ptr_max
PREEMPT_ADD <- disables preempt
LOCK2 &buf->lock
HALF_LOCKED2 &dc->writeback_lock
TYPE_LOCK (struct keybuf)->lock

arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_memslot_iter_start() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &kvm->slots_lock

net/ipv4/tcp_output.c tcp_rtx_queue_tail() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &sk->sk_lock.slock
HALF_LOCKED2 sk

net/ipv4/tcp_output.c tcp_send_fin() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 sk

net/ipv4/tcp_output.c tcp_send_loss_probe() -> rb_last()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &sk->sk_lock.slock