Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
mm/hugetlb.c hugetlb_mfill_atomic_pte() -> hugetlb_add_to_page_cache()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->memcg_data | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | folio->page._refcount.counter | 1 |
| PARAM_VALUE | 1 | mapping | 4096-ptr_max |
| PARAM_VALUE | 1 | mapping->host | 4096-ptr_max |
| PARAM_VALUE | 2 | idx | 0-36028797018963967 |
| CAPPED_DATA | 2 | idx | 1 |
| CAPPED_DATA | 2 | idx | 1 |
| DATA_SOURCE | 0 | folio | r alloc_hugetlb_folio |
| DATA_SOURCE | 2 | idx | r vma_hugecache_offset |
| USER_DATA | 2 | idx | 0-s32max[c] |
| LOCK2 | &state.ctx->map_changing_lock | ||
| HALF_LOCKED2 | &ctx->map_changing_lock | ||
| TYPE_LOCK | (struct userfaultfd_ctx)->map_changing_lock |
mm/hugetlb.c hugetlb_no_page() -> hugetlb_add_to_page_cache()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->memcg_data | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | folio->page._refcount.counter | 1 |
| PARAM_VALUE | 1 | mapping | 4096-ptr_max |
| PARAM_VALUE | 1 | mapping->host | 4096-ptr_max |
| PARAM_VALUE | 2 | idx | 0-36028797018963967 |
| CAPPED_DATA | 2 | idx | 1 |
| CAPPED_DATA | 2 | idx | 1 |
| DATA_SOURCE | 0 | folio | r alloc_hugetlb_folio |
| DATA_SOURCE | 1 | mapping | $0 |
| NOSPEC | 2 | idx | |
| NOSPEC | 2 | idx | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | idx | 0-s32max[c] |
| UNITS | 2 | idx | unit_page |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &pool->lock |
fs/hugetlbfs/inode.c hugetlbfs_fallocate() -> hugetlb_add_to_page_cache()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->memcg_data | 4096-18446744073709547520 |
| PARAM_VALUE | 0 | folio->page._refcount.counter | 1 |
| PARAM_VALUE | 2 | idx | 1-9223372036854775806 |
| CAPPED_DATA | 2 | idx | 1 |
| CAPPED_DATA | 2 | idx | 1 |
| DATA_SOURCE | 0 | folio | r alloc_hugetlb_folio |
| NOSPEC | 2 | idx | |
| NOSPEC | 2 | idx | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | idx | 1-9223372036854775806 |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
mm/memfd.c memfd_alloc_folio() -> hugetlb_add_to_page_cache()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->page._refcount.counter | 1 |
| PARAM_VALUE | 0 | folio->page.flags.f | 0-18446744073709551614 |
| PARAM_VALUE | 1 | mapping | 0,4096-ptr_max |
| PARAM_VALUE | 1 | mapping->host->i_sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max |
| CAPPED_DATA | 2 | idx | 1 |
| CAPPED_DATA | 2 | idx | 1 |
| DATA_SOURCE | 0 | folio | r alloc_hugetlb_folio_reserve |
| DATA_SOURCE | 2 | idx | $1 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | _T->lock |