函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:flags

函数原型:static void __init flags(void)

返回类型:void

参数:

556  flags等于0
557  test("", "%pGp", & flags)
560  flags等于1UL左移NR_PAGEFLAGS
561  test("", "%pGp", & flags)
563  flags或等于1UL左移PG_uptodate位按位或1UL左移PG_dirty位按位或1UL左移PG_lru位按位或1UL左移PG_active位按位或1UL左移Page is backed by RAM/swap
565  test("uptodate|dirty|lru|active|swapbacked", "%pGp", & flags)
568  flags等于currently active flags 按位或VM_EXEC按位或limits for mprotect() etc 按位或VM_MAYWRITE按位或VM_MAYEXEC按位或ETXTBSY on write attempts..
570  test("read|exec|mayread|maywrite|mayexec|denywrite", "%pGv", & flags)
572  gfp等于GFP_TRANSHUGE
573  test("GFP_TRANSHUGE", "%pGg", & gfp)
575  gfp等于DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear按位或Physical address zone modifiers (see linux/mmzone.h - low four bits)* Do not put any conditional on these. If necessary modify the definitions* without the underscores and use them consistently. The definitions here may* be used in bit comparisons.
576  test("GFP_ATOMIC|GFP_DMA", "%pGg", & gfp)
578  gfp等于DOC: Watermark modifiers* Watermark modifiers -- controls access to emergency reserves* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* %__GFP_HIGH indicates that the caller is high-priority and that granting
579  test("__GFP_ATOMIC", "%pGg", & gfp)
581  cmp_buffer等于kmalloc(BUF_SIZE, GFP_KERNEL)
582  如果非cmp_buffer则返回
586  gfp等于__GFP_BITS_MASK的反
587  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
588  test(cmp_buffer, "%pGg", & gfp)
590  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
592  gfp或等于DOC: Watermark modifiers* Watermark modifiers -- controls access to emergency reserves* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* %__GFP_HIGH indicates that the caller is high-priority and that granting
593  test(cmp_buffer, "%pGg", & gfp)
595  kfree(cmp_buffer)
调用者
名称描述
test_pointer