函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_nb.c Create Date:2022-07-27 09:43:01
Last Modify:2020-03-16 21:36:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:amd_flush_garts

函数原型:void amd_flush_garts(void)

返回类型:void

参数:

454  DEFINE_SPINLOCK(gart_lock)
456  如果非amd_nb_has_feature(AMD_NB_GART)则返回
465  spin_lock_irqsave( & gart_lock, flags)
466  flushed等于0
467 i小于num循环
468  pci_write_config_dword(misc, 0x9c, flush_words[i] | 1)
470  flushed自加
472 i小于num循环
475  循环
476  pci_read_config_dword(misc, 0x9c, & w)
478  如果非w按位与1的值则退出
480  cpu_relax()
483  spin_unlock_irqrestore( & gart_lock, flags)
484  如果非flushed打印注释信息("nothing to flush?\n")
调用者
名称描述
flush_gartUse global flush state to avoid races with multiple flushers.
enable_gart_translations