函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugepage_init

函数原型:static int __init hugepage_init(void)

返回类型:int

参数:

395  如果非has_transparent_hugepage()则
396  By default, transparent hugepage support is disabled in order to avoid* risking an increased memory footprint for applications that are not* guaranteed to benefit from it. When transparent hugepage support is等于0
397  返回:负EINVAL
403  MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER >= Free memory management - zoned buddy allocator. )
408  MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER < 2)
410  err等于hugepage_init_sysfs( & hugepage_kobj)
411  如果err则转到:err_sysfs
414  err等于khugepaged_init()
415  如果err则转到:err_slab
418  err等于register_shrinker( & huge_zero_page_shrinker)
419  如果err则转到:err_hzp_shrinker
421  err等于register_shrinker( & deferred_split_shrinker)
422  如果err则转到:err_split_shrinker
430  如果totalram_pages()小于512左移20减PAGE_SHIFT determines the page size 位则
431  By default, transparent hugepage support is disabled in order to avoid* risking an increased memory footprint for applications that are not* guaranteed to benefit from it. When transparent hugepage support is等于0
432  返回:0
435  err等于start_stop_khugepaged()
436  如果err则转到:err_khugepaged
439  返回:0
440  err_khugepaged :
441  Remove one
442  err_split_shrinker :
443  Remove one
444  err_hzp_shrinker :
445  khugepaged_destroy()
446  err_slab :
447  hugepage_exit_sysfs(hugepage_kobj)
448  err_sysfs :
449  返回:err