Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_for_stack

Proto:static void check_for_stack(struct device *dev, struct page *page, size_t offset)

Type:void

Parameter:

TypeParameterName
struct device *dev
struct page *page
size_toffset
1092  stack_vm_area = task_stack_vm_area(current process)
1094  If Not stack_vm_area Then
1096  If PageHighMem(page) Then Return
1098  addr = page_address(page) + offset
1099  If object_is_on_stack(addr) Then
1101  Else
1105  When i < nr_pages cycle
1106  If page != pages[i] Then Continue
1109  addr = stack + i * PAGE_SIZE + offset
1111  Break
Caller
NameDescribe
debug_dma_map_page
debug_dma_map_sg