Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:msr_open

Proto:static int msr_open(struct inode *inode, struct file *file)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
158  cpu = iminor(file_inode(file))
161  If Not Check operation authority Then Return -EPERM
164  If cpu >= nr_cpu_ids || Not cpu_online(cpu) Then Return -ENXIO
167  c = cpu_data(cpu)
168  If Not cpu_has(c, Model-Specific Registers ) Then Return -EIO
171  Return 0