Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_debug_virtual.c Create Date:2022-07-28 06:35:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_debug_virtual_init

Proto:static int __init test_debug_virtual_init(void)

Type:int

Parameter:Nothing

27  va = VMALLOC_START
28  pa = virt_to_phys - map virtual addresses to physical*@address: address to remap* The returned physical address is the physical (CPU) mapping for* the memory address given. It is only valid to use this function on
30  pr_info("PA: %pa for VA: 0x%lx\n", & pa, (unsignedlong)va)
32  foo = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
33  If Not foo Then Return -ENOMEM
36  pa = virt_to_phys - map virtual addresses to physical*@address: address to remap* The returned physical address is the physical (CPU) mapping for* the memory address given. It is only valid to use this function on
37  va = foo
38  pr_info("PA: %pa for VA: 0x%lx\n", & pa, (unsignedlong)va)
40  Return 0