Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cpuid_open

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

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *file
107  cpu = iminor(file_inode(file))
108  If cpu >= nr_cpu_ids || Not cpu_online(cpu) Then Return -ENXIO
111  c = cpu_data(cpu)
112  If Maximum supported CPUID level, -1=no CPUID: < 0 Then Return -EIO
115  Return 0