Linux / Drivers / Hwmon
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 249 files with 126,523 lines of code.
    • 29 very long files (46,321 lines of code)
    • 61 long files (42,088 lines of code)
    • 87 medium size files (29,195 lines of codeclsfd_ftr_w_mp_ins)
    • 50 small files (7,658 lines of code)
    • 22 very small files (1,261 lines of code)
36% | 33% | 23% | 6% | <1%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c36% | 33% | 22% | 5% | <1%
h0% | 0% | 53% | 22% | 24%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT39% | 32% | 22% | 4% | <1%
pmbus17% | 33% | 27% | 16% | 4%
occ0% | 62% | 0% | 31% | 5%
Longest Files (Top 50)
File# lines# units
nct6775.c
in root
4128 59
it87.c
in root
2593 72
f71882fg.c
in root
2417 64
pmbus_core.c
in pmbus
2243 80
dme1737.c
in root
2007 63
lm93.c
in root
1977 101
w83795.c
in root
1821 24
1664 24
w83781d.c
in root
1658 14
w83793.c
in root
1653 25
w83627hf.c
in root
1603 30
lm90.c
in root
1546 49
adt7462.c
in root
1543 48
adm1026.c
in root
1521 59
adt7475.c
in root
1505 43
pc87360.c
in root
1448 60
w83792d.c
in root
1381 11
lm85.c
in root
1344 49
f71805f.c
in root
1333 60
w83791d.c
in root
1258 37
1170 31
nct6683.c
in root
1147 20
1088 34
applesmc.c
in root
1073 58
adt7470.c
in root
1067 38
1049 29
1036 18
pc87427.c
in root
1034 46
vt1211.c
in root
1014 32
nct7904.c
in root
995 27
982 32
fschmd.c
in root
980 29
nct7802.c
in root
975 31
common.c
in occ
975 19
lm63.c
in root
895 32
asc7621.c
in root
892 34
adm1031.c
in root
872 31
vt8231.c
in root
824 39
ibmaem.c
in root
820 31
816 29
ltc2992.c
in root
813 31
hwmon.c
in root
810 26
amc6821.c
in root
810 23
bt1-pvt.c
in root
806 41
795 27
lm78.c
in root
791 39
782 19
lm75.c
in root
776 16
lm87.c
in root
769 30
ltc2978.c
in pmbus
759 17
Files With Most Units (Top 50)
File# lines# units
lm93.c
in root
1977 101
pmbus_core.c
in pmbus
2243 80
it87.c
in root
2593 72
f71882fg.c
in root
2417 64
dme1737.c
in root
2007 63
f71805f.c
in root
1333 60
pc87360.c
in root
1448 60
nct6775.c
in root
4128 59
adm1026.c
in root
1521 59
applesmc.c
in root
1073 58
lm85.c
in root
1344 49
lm90.c
in root
1546 49
adt7462.c
in root
1543 48
pc87427.c
in root
1034 46
adt7475.c
in root
1505 43
bt1-pvt.c
in root
806 41
vt8231.c
in root
824 39
lm78.c
in root
791 39
adt7470.c
in root
1067 38
w83791d.c
in root
1258 37
g762.c
in root
721 36
asc7621.c
in root
892 34
1088 34
f75375s.c
in root
756 34
sis5595.c
in root
690 33
via686a.c
in root
668 33
982 32
vt1211.c
in root
1014 32
lm63.c
in root
895 32
asb100.c
in root
754 32
ibmaem.c
in root
820 31
1170 31
adm1031.c
in root
872 31
nct7802.c
in root
975 31
ltc2992.c
in root
813 31
gl520sm.c
in root
721 31
646 31
lm87.c
in root
769 30
w83627hf.c
in root
1603 30
816 29
1049 29
sht15.c
in root
705 29
fschmd.c
in root
980 29
gpio-fan.c
in root
444 29
stts751.c
in root
611 28
adm9240.c
in root
674 28
795 27
nct7904.c
in root
995 27
hwmon.c
in root
810 26
i5k_amb.c
in root
482 26
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 2 long lines.

File# lines# units# long lines
ina209.c
in root
439 15 1
hwmon.c
in root
810 26 1