Defined in 1 files as a function:
Referenced in 49 files:
- arch/powerpc/kvm/book3s_hv.c, line 5370
- arch/powerpc/platforms/pseries/cmm.c
- arch/x86/kvm/svm/sev.c, line 731
- drivers/char/agp/backend.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, line 2191
- drivers/gpu/drm/i915/gem/i915_gem_shmem.c, line 699
- drivers/gpu/drm/i915/gem/i915_gem_ttm.c, line 1377
- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
- drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c, line 85
- drivers/hv/hv_balloon.c, line 1069
- drivers/md/dm-bufio.c, line 2845
- drivers/md/dm-crypt.c, line 2654
- drivers/md/dm-integrity.c, line 4511
- drivers/md/dm-stats.c, line 91
- drivers/md/dm-writecache.c, line 24
- drivers/media/platform/mediatek/vpu/mtk_vpu.c, line 887
- drivers/misc/vmw_balloon.c, line 631
- drivers/net/wireguard/ratelimiter.c
- drivers/parisc/ccio-dma.c
- drivers/parisc/sba_iommu.c
- fs/ceph/super.h, line 1020
- fs/file_table.c, line 660
- fs/fuse/inode.c, line 1216
- fs/nfs/write.c, line 2183
- fs/nfsd/nfscache.c, line 73
- fs/ntfs/malloc.h, line 36
- fs/proc/base.c, line 586
- kernel/dma/pool.c, line 224
- kernel/kexec_core.c, line 115
- kernel/power/snapshot.c, line 141
- mm/damon/core.c, line 3579
- mm/huge_memory.c, line 1083
- mm/kasan/quarantine.c, line 266
- mm/mm_init.c
- mm/oom_kill.c, line 263
- mm/shmem.c
- mm/show_mem.c, line 78
- mm/swap_state.c, line 1016
- mm/util.c
- mm/vmalloc.c
- mm/workingset.c, line 810
- mm/zswap.c, line 488
- net/ipv4/inetpeer.c, line 77
- net/ipv4/tcp_metrics.c, line 1023
- net/netfilter/ipvs/ip_vs_conn.c, line 2130
- net/netfilter/nf_conntrack_core.c, line 2627
- net/netfilter/xt_hashlimit.c, line 284
- net/sctp/protocol.c, line 1478
- security/integrity/ima/ima_kexec.c, line 190
Smatch caller information:
mm/show_mem.c si_meminfo() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock | ||
| HALF_LOCKED2 | global &nfsd_mutex | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | global &ttm_global_mutex |
mm/huge_memory.c hugepage_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
net/ipv4/tcp_metrics.c tcp_metrics_hash_alloc() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/wireguard/ratelimiter.c wg_ratelimiter_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &init_lock | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &ops->srcu | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
drivers/net/wireguard/ratelimiter.c wg_ratelimiter_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &init_lock | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &ops->srcu | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
mm/oom_kill.c constrained_alloc() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &oom_lock |
mm/kasan/quarantine.c kasan_quarantine_reduce() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | global &quarantine_lock | ||
| LOCK2 | global &remove_cache_srcu |
drivers/hv/hv_balloon.c compute_balloon_floor() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/proc/base.c proc_oom_score() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
mm/zswap.c zswap_max_pages() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/misc/vmw_balloon.c vmballoon_send_get_target() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &b->conf_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct vmballoon)->conf_sem |
drivers/gpu/drm/i915/i915_gem_gtt.c exercise_mock() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/gpu/drm/i915/i915_gem_gtt.c igt_ppgtt_alloc() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
mm/util.c __vm_enough_memory() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &vma->anon_vma->root->rwsem | ||
| HALF_LOCKED2 | global &swap_lock |
mm/util.c vm_commit_limit() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock |
mm/shmem.c shmem_default_max_blocks() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/shmem.c shmem_default_max_inodes() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/shmem.c shmem_parse_one() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
mm/mm_init.c mem_init_print_info() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
mm/mm_init.c mm_compute_batch() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/file_table.c files_maxfiles_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
arch/x86/kvm/svm/sev.c sev_check_pin_count() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | _T->lock |
kernel/kexec_core.c sanity_check_segment_list() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
kernel/power/snapshot.c hibernate_image_size_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/gpu/drm/i915/gem/i915_gem_ttm.c i915_gem_ttm_system_setup() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/i915/gem/i915_gem_shmem.c i915_gem_shmem_setup() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/workingset.c workingset_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
net/sctp/protocol.c sctp_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/md/dm-writecache.c writecache_ctr() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &md->type_lock |
net/netfilter/xt_hashlimit.c htable_create() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hashlimit_mutex |
kernel/dma/pool.c dma_atomic_pool_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c vmw_gmrid_man_get_node() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &gman->lock | ||
| TYPE_LOCK | (struct vmwgfx_gmrid_man)->lock |
drivers/md/dm-integrity.c create_journal() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/media/platform/mediatek/vpu/mtk_vpu.c mtk_vpu_probe() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/netfilter/ipvs/ip_vs_conn.c ip_vs_conn_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/md/dm-crypt.c crypt_calculate_pages_per_client() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| LOCK2 | global &dm_crypt_clients_lock |
fs/nfs/write.c nfs_init_writepagecache() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
fs/nfsd/nfscache.c nfsd_cache_size_limit() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &nfsd_mutex |
net/ipv4/inetpeer.c inet_initpeers() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
drivers/md/dm-stats.c __check_shared_memory() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| LOCK2 | global &shared_memory_lock | ||
| LOCK2 | irq |
drivers/md/dm-bufio.c dm_bufio_init() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
mm/vmalloc.c __vmalloc_node_range_noprof() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &xs->mutex |
mm/vmalloc.c check_sparse_vm_area() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
mm/vmalloc.c vmap() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &bo->mutex | ||
| HALF_LOCKED2 | &buffer->lock | ||
| HALF_LOCKED2 | &dev->clientlist_mutex | ||
| HALF_LOCKED2 | &dev->error_task_list_lock | ||
| HALF_LOCKED2 | &gbuf_resize_mutex | ||
| HALF_LOCKED2 | &helper->lock | ||
| HALF_LOCKED2 | &imem->lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &ni->base->ni_lock | ||
| HALF_LOCKED2 | &obj->lock | ||
| HALF_LOCKED2 | &omap_obj->lock | ||
| HALF_LOCKED2 | &vi->i_rwsem | ||
| HALF_LOCKED2 | &xs->mutex | ||
| HALF_LOCKED2 | global &dax_srcu | ||
| HALF_LOCKED2 | global &relay_channels_mutex |
mm/damon/core.c damos_get_wmark_metric_value() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
fs/fuse/inode.c sanitize_global_limit() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/agp/backend.c agp_find_max() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
fs/ceph/super.c default_congestion_kb() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/swap_state.c swap_readahead_setup() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
net/netfilter/nf_conntrack_core.c nf_conntrack_init_start() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|
security/integrity/ima/ima_kexec.c ima_add_kexec_buffer() -> totalram_pages()
| Type | Parameter | Key | Value |
|---|