函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memory_failure_queue - Schedule handling memory failure of a page.*@pfn: Page Number of the corrupted page*@flags: Flags for memory failure handling* This function is called by the low level hardware error handler

函数原型:void memory_failure_queue(unsigned long pfn, int flags)

返回类型:void

参数:

类型参数名称
unsigned longpfn
intflags
1447  struct memory_failure_entry entry = {pfn = pfn, flags = flags, }
1452  mf_cpu等于Must be an lvalue. Since @var must be a simple identifier,* we force a syntax error here if it isn't.(memory_failure_cpu)
1453  spin_lock_irqsave( & lock, proc_flags)
1454  如果kfifo_put - put data into the fifo*@fifo: address of the fifo to be used*@val: the data to be added* This macro copies the given value into the fifo( & fifo, entry)则为cpu配置任务
1456  否则打印错误信息("Memory failure: buffer overflow when queuing memory failure at %#lx\n", pfn)
1459  spin_unlock_irqrestore( & lock, proc_flags)
1460  The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(memory_failure_cpu)