| Function report | 
| Source Code: mm\hugetlb.c | Create Date:2022-07-28 15:27:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:nr_hugepages_show_common
Proto:static ssize_t nr_hugepages_show_common(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kobject * | kobj | |
| struct kobj_attribute * | attr | |
| char * | buf | 
| 2466 | h = kobj_to_hstate(kobj, & nid) | 
| 2467 | If nid == NUMA_NO_NODE Then nr_huge_pages = nr_huge_pages | 
| 2469 | Else nr_huge_pages = nr_huge_pages_node[nid] | 
| 2472 | Return sprintf(buf, "%lu\n", nr_huge_pages) | 
| Name | Describe | 
|---|---|
| nr_hugepages_show | |
| nr_hugepages_mempolicy_show | hstate attribute for optionally mempolicy-based constraint on persistent* huge page alloc/free. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |