Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/hugetlb.c __update_and_free_hugetlb_folio() -> add_hugetlb_folio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->next_nid_to_alloc | s32min-1023 |
| PARAM_VALUE | 0 | h->next_nid_to_free | s32min-1023 |
| PARAM_VALUE | 0 | h->order | 9,18 |
| PARAM_VALUE | 0 | *h->surplus_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio | 4096-ptr_max |
| PARAM_VALUE | 1 | folio->mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 2 | adjust_surplus | 1 |
| BUF_SIZE | 0 | h | (-1),66112 |
| BUF_SIZE | 0 | h | (-1),66112 |
| CAPPED_DATA | 0 | h | 1 |
| DATA_SOURCE | 0 | h | $0 |
| DATA_SOURCE | 1 | folio | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | 0 | &h->resize_lock |
mm/hugetlb.c bulk_vmemmap_restore_error() -> add_hugetlb_folio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->next_nid_to_alloc | 0-64 |
| PARAM_VALUE | 0 | h->next_nid_to_free | s32min-1023 |
| PARAM_VALUE | 0 | *h->surplus_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio | 4096-ptr_max |
| PARAM_VALUE | 2 | adjust_surplus | 1 |
| DATA_SOURCE | 0 | h | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | 0 | &h->resize_lock |
mm/hugetlb.c demote_pool_huge_page() -> add_hugetlb_folio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->demote_order | 9,18 |
| PARAM_VALUE | 0 | h->hugepage_freelists | 4096-ptr_max |
| PARAM_VALUE | 0 | h->next_nid_to_alloc | 0-64 |
| PARAM_VALUE | 0 | h->next_nid_to_free | 0-64 |
| PARAM_VALUE | 0 | h->order | 9,18 |
| PARAM_VALUE | 0 | h->resize_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | h->resize_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | h->resize_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | h->resize_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | h->resize_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | h->resize_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | h->resize_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | folio | 4096-ptr_max |
| PARAM_VALUE | 1 | folio->mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 1 | folio->mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 2 | adjust_surplus | 0 |
| DATA_SOURCE | 0 | h | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &h->resize_lock | |
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct hstate)->resize_lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/hugetlb.c dissolve_free_hugetlb_folio() -> add_hugetlb_folio()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 3469904130518499328-18446744073709547519 |
| PARAM_VALUE | 0 | h->order | 9,18 |
| PARAM_VALUE | 0 | h->surplus_huge_pages_node | 4096-ptr_max |
| PARAM_VALUE | 1 | folio | 4096-ptr_max |
| PARAM_VALUE | 1 | folio->page.page_type | u32max |
| BUF_SIZE | 0 | h | (-1),66112 |
| BUF_SIZE | 0 | h | (-1),66112 |
| CAPPED_DATA | 0 | h | 1 |
| DATA_SOURCE | 0 | h | r folio_hstate |
| DATA_SOURCE | 1 | folio | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | folio | unit_page |
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | global &pcp_batch_high_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &mf_mutex |