1System::Info::Linux(3)User Contributed Perl DocumentationSystem::Info::Linux(3)
2
3
4
6 System::Info::Linux - Object for specific Linux info.
7
9 $si->prepare_sysinfo
10 Use os-specific tools to find out more about the system.
11
12 $si->prepare_os
13 Use os-specific tools to find out more about the operating system.
14
15 $si->linux_generic
16 Check "/proc/cpuinfo" for these keys:
17
18 "processor" (count occurrence for __cpu_count)
19 "model name" (part of __cpu)
20 "vendor_id" (part of __cpu)
21 "cpu mhz" (part of __cpu)
22 "cpu cores" (add values to add to __cpu_count)
23
24 $si->linux_arm
25 Check "/proc/cpuinfo" for these keys:
26
27 "processor" (count occurrence for __cpu_count)
28 "Processor" (part of __cpu)
29 "BogoMIPS" (part of __cpu)
30
31 $si->linux_ppc
32 Check "/proc/cpuinfo" for these keys:
33
34 "processor" (count occurrence for __cpu_count)
35 "cpu" (part of __cpu)
36 "machine" (part of __cpu)
37 "clock" (part of __cpu)
38 "detected" (alters machine if present)
39
40 $si->linux_sparc
41 Check "/proc/cpuinfo" for these keys:
42
43 "processor" (count occurrence for __cpu_count)
44 "cpu" (part of __cpu)
45 "Cpu0ClkTck" (part of __cpu)
46
47 $si->linux_s390x
48 Check "/proc/cpuinfo" for these keys:
49
50 "processor" (count occurrence for __cpu_count)
51 "Processor" (part of __cpu)
52 "BogoMIPS" (part of __cpu)
53
54 $si->prepare_proc_cpuinfo
55 Read the complete "/proc/cpuinfo".
56
57 $si->count_in_cpuinfo ($regex)
58 Returns the number of lines $regex matches for.
59
60 $si->count_unique_in_cpuinfo ($regex)
61 Returns the number of lines $regex matches for.
62
63 $si->from_cpuinfo ($key)
64 Returns the first value of that key in "/proc/cpuinfo".
65
67 (c) 2016-2022, Abe Timmerman & H.Merijn Brand, All rights reserved.
68
69 With contributions from Jarkko Hietaniemi, Campo Weijerman, Alan
70 Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, Rich Rauenzahn,
71 David Cantrell.
72
73 This library is free software; you can redistribute it and/or modify it
74 under the same terms as Perl itself.
75
76 See:
77
78 • <http://www.perl.com/perl/misc/Artistic.html>
79
80 • <http://www.gnu.org/copyleft/gpl.html>
81
82 This program is distributed in the hope that it will be useful, but
83 WITHOUT ANY WARRANTY; without even the implied warranty of
84 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
85
86
87
88perl v5.34.0 2022-01-21 System::Info::Linux(3)