函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-27 16:58:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__nr_hugepages_store_common

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

返回类型:ssize_t

参数:

类型参数名称
boolobey_mempolicy
struct hstate *h
intnid
unsigned longcount
size_tlen
2482  如果hstate_is_gigantic(h)且非gigantic_page_runtime_supported()则返回:负EINVAL
2485  如果nid恒等于NUMA_NO_NODE
2489  如果非obey_mempolicyinit_nodemask_of_mempolicy( & nodes_allowed)的值则n_mask等于Array of node states.[N_MEMORY]
2492  否则n_mask等于nodes_allowed
2494  否则
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  返回:如果errerr否则len
调用者
名称描述
nr_hugepages_store_common
hugetlb_sysctl_handler_common