Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/hugetlb.c demote_free_hugetlb_folios() -> prep_and_add_allocated_folios()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 0,3469904130518499328-18446744073709547519 |
| 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_list | 4977343937789501440 |
| PARAM_VALUE | 1 | folio_list->next | 4096-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 4977343937789501440 |
| BUF_SIZE | 0 | h | (-1),66112 |
| BUF_SIZE | 0 | h | (-1),66112 |
| CAPPED_DATA | 0 | h | 1 |
| CAPPED_DATA | 0 | &h->resize_lock | 1 |
| DATA_SOURCE | 0 | h | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | &src->resize_lock | ||
| 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 hugetlb_hstate_alloc_pages_onenode() -> prep_and_add_allocated_folios()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 3469904130518499328-18446744073709547519 |
| PARAM_VALUE | 0 | h->max_huge_pages_node | 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->max_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio_list | 1437659390369153024 |
| PARAM_VALUE | 1 | folio_list->next | 4096-1437659390369153023,1437659390369153025-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 1437659390369153024 |
| BUF_SIZE | 0 | h | (-1),66112 |
| BUF_SIZE | 0 | h | (-1),66112 |
| CAPPED_DATA | 0 | h->next_nid_to_alloc | 1 |
| DATA_SOURCE | 0 | h | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | irq |
mm/hugetlb.c hugetlb_hstate_alloc_pages_onenode() -> prep_and_add_allocated_folios()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 3469904130518499328-18446744073709547519 |
| PARAM_VALUE | 0 | h->max_huge_pages_node | 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->max_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio_list | 1437659390369153024 |
| PARAM_VALUE | 1 | folio_list->next | 4096-1437659390369153023,1437659390369153025-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 1437659390369153024 |
| BUF_SIZE | 0 | h | (-1),66112 |
| BUF_SIZE | 0 | h | (-1),66112 |
| CAPPED_DATA | 0 | h->next_nid_to_alloc | 1 |
| DATA_SOURCE | 0 | h | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | irq |
mm/hugetlb.c hugetlb_pages_alloc_boot_node() -> prep_and_add_allocated_folios()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h | 4096-ptr_max |
| PARAM_VALUE | 0 | h->order | 9,18 |
| PARAM_VALUE | 1 | folio_list | 1503464089387085824 |
| PARAM_VALUE | 1 | folio_list->next | 4096-1503464089387085823,1503464089387085825-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 1503464089387085824 |
| BUF_SIZE | 0 | h | 66112 |
| BUF_SIZE | 0 | h | 66112 |
| DATA_SOURCE | 0 | h | $2 |
| NOCHECK_CALL |
mm/hugetlb.c hugetlb_pages_alloc_boot_node() -> prep_and_add_allocated_folios()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | h->order | 9,18 |
| PARAM_VALUE | 1 | folio_list | 1503464089387085824 |
| PARAM_VALUE | 1 | folio_list->next | 4096-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 1503464089387085824 |
| BUF_SIZE | 0 | h | 66112 |
| BUF_SIZE | 0 | h | 66112 |
| DATA_SOURCE | 0 | h | $2 |
| NOCHECK_CALL |
mm/hugetlb.c set_max_huge_pages() -> prep_and_add_allocated_folios()
| 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 | 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 | 0 | *h->surplus_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio_list | 7426495693676539904 |
| PARAM_VALUE | 1 | folio_list->next | 4096-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 7426495693676539904 |
| CAPPED_DATA | 0 | &h->resize_lock | 1 |
| DATA_SOURCE | 0 | h | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &h->resize_lock | |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct hstate)->resize_lock |
mm/hugetlb.c set_max_huge_pages() -> prep_and_add_allocated_folios()
| 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 | 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 | 0 | *h->surplus_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio_list | 7426495693676539904 |
| PARAM_VALUE | 1 | folio_list->next | 4096-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 7426495693676539904 |
| CAPPED_DATA | 0 | &h->resize_lock | 1 |
| DATA_SOURCE | 0 | h | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &h->resize_lock | |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct hstate)->resize_lock |
mm/hugetlb.c set_max_huge_pages() -> prep_and_add_allocated_folios()
| 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 | 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 | 0 | *h->surplus_huge_pages_node | 0-4294967295 |
| PARAM_VALUE | 1 | folio_list | 7426495693676539904 |
| PARAM_VALUE | 1 | folio_list->next | 4096-7426495693676539903,7426495693676539905-ptr_max |
| PARAM_VALUE | 1 | folio_list->prev | 7426495693676539904 |
| CAPPED_DATA | 0 | &h->resize_lock | 1 |
| DATA_SOURCE | 0 | h | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &h->resize_lock | |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct hstate)->resize_lock |