Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:27:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__nr_hugepages_store_common

Proto:static ssize_t __nr_hugepages_store_common(bool obey_mempolicy, struct hstate *h, int nid, unsigned long count, size_t len)

Type:ssize_t

Parameter:

TypeParameterName
boolobey_mempolicy
struct hstate *h
intnid
unsigned longcount
size_tlen
2482  If hstate_is_gigantic(h) && Not gigantic_page_runtime_supported() Then Return -EINVAL
2485  If nid == NUMA_NO_NODE Then
2489  If Not (obey_mempolicy && init_nodemask_of_mempolicy( & nodes_allowed)) Then n_mask = Array of node states.[N_MEMORY]
2492  Else n_mask = nodes_allowed
2494  Else
2499  init_nodemask_of_node( & nodes_allowed, nid)
2500  n_mask = nodes_allowed
2503  err = set_max_huge_pages(h, count, nid, n_mask)
2505  Return If err Then err Else len
Caller
NameDescribe
nr_hugepages_store_common
hugetlb_sysctl_handler_common