函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-27 09:13:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pseudo_lock_fn - Load kernel memory into cache*@_rdtgrp: resource group to which pseudo-lock region belongs* This is the core pseudo-locking flow

函数原型:static int pseudo_lock_fn(void *_rdtgrp)

返回类型:int

参数:

类型参数名称
void *_rdtgrp
415  rdtgrp等于_rdtgrp
416  plr等于plr
445  native_wbinvd()
451  禁止中断()
462  __wrmsr(MSR_MISC_FEATURE_CONTROL, The bits needed to disable hardware prefetching varies based on the* platform. During initialization we will discover which bits to use., 0x0)
463  closid_p等于Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cur_closid)
464  rmid_p等于Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cur_rmid)
465  mem_r等于kmem
466  size等于size
467  line_size等于line_size
474  __wrmsr(IA32_PQR_ASSOC, rmid_p, closid)
484 i小于size循环
489  rmb()
490  asm volatile
495 i小于size循环
500  rmb()
501  asm volatile
510  __wrmsr(IA32_PQR_ASSOC, rmid_p, closid_p)
513  wrmsr(MSR_MISC_FEATURE_CONTROL, 0x0, 0x0)
514  开中断()
516  thread_done等于1
517  wake_up_interruptible( & lock_thread_wq)
518  返回:0