Function report |
Source Code:arch\x86\kernel\msr.c |
Create Date:2022-07-28 08:18:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:msr_ioctl
Proto:static long msr_ioctl(struct file *file, unsigned int ioc, unsigned long arg)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
unsigned int | ioc | |
unsigned long | arg |
109 | cpu = iminor(file_inode(file)) |
113 | Case ioc == X86_IOC_RDMSR_REGS |
114 | If Not (f_mode & le is open for reading ) Then |
118 | If copy_from_user( & regs, uregs, size of regs ) Then |
122 | err = rdmsr_safe_regs_on_cpu(cpu, regs) |
123 | If err Then Break |
127 | Break |
129 | Case ioc == X86_IOC_WRMSR_REGS |
130 | If Not (f_mode & le is open for writing ) Then |
134 | If copy_from_user( & regs, uregs, size of regs ) Then |
138 | err = security_locked_down(LOCKDOWN_MSR) |
139 | If err Then Break |
141 | err = wrmsr_safe_regs_on_cpu(cpu, regs) |
142 | If err Then Break |
146 | Break |
148 | Default |
153 | Return err |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |