Linux / Drivers / Base
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 80 files with 31,445 lines of code.
    • 6 very long files (10,705 lines of code)
    • 16 long files (10,843 lines of code)
    • 17 medium size files (5,987 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,709 lines of code)
    • 23 very small files (1,201 lines of code)
34% | 34% | 19% | 8% | 3%
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
c34% | 35% | 18% | 7% | 3%
h0% | 0% | 26% | 63% | 10%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
power55% | 23% | 8% | 9% | 2%
ROOT20% | 49% | 19% | 8% | 2%
regmap30% | 25% | 27% | 8% | 7%
firmware_loader56% | 0% | 26% | 7% | 9%
Longest Files (Top 50)
File# lines# units
core.c
in root
2938 171
regmap.c
in regmap
2248 124
domain.c
in power
2129 106
main.c
in power
1326 72
runtime.c
in power
1053 54
main.c
in firmware_loader
1011 54
platform.c
in root
937 47
regmap-irq.c
in regmap
827 21
node.c
in root
811 44
swnode.c
in root
794 27
bus.c
in root
790 51
dd.c
in root
759 47
memory.c
in root
703 44
wakeup.c
in power
678 46
devres.c
in root
638 34
sysfs.c
in power
625 43
qos.c
in power
620 30
property.c
in root
564 31
532 30
regcache.c
in regmap
528 22
521 18
516 28
clock_ops.c
in power
487 28
cpu.c
in root
466 33
fallback.c
in firmware_loader
466 30
455 27
432 14
404 12
devtmpfs.c
in root
385 17
regmap-mmio.c
in regmap
378 27
class.c
in root
373 24
355 25
322 4
regmap-i2c.c
in regmap
316 13
277 14
227 9
internal.h
in regmap
227 7
213 17
204 13
soc.c
in root
196 8
trace.c
in power
190 10
wakeirq.c
in power
189 14
regmap-w1.c
in regmap
172 6
regmap-spmi.c
in regmap
167 6
164 10
trace.h
in regmap
162 -
158 11
topology.c
in root
146 3
145 22
isa.c
in root
139 10
Files With Most Units (Top 50)
File# lines# units
core.c
in root
2938 171
regmap.c
in regmap
2248 124
domain.c
in power
2129 106
main.c
in power
1326 72
runtime.c
in power
1053 54
main.c
in firmware_loader
1011 54
bus.c
in root
790 51
dd.c
in root
759 47
platform.c
in root
937 47
wakeup.c
in power
678 46
memory.c
in root
703 44
node.c
in root
811 44
sysfs.c
in power
625 43
devres.c
in root
638 34
cpu.c
in root
466 33
property.c
in root
564 31
qos.c
in power
620 30
532 30
fallback.c
in firmware_loader
466 30
clock_ops.c
in power
487 28
516 28
455 27
regmap-mmio.c
in regmap
378 27
swnode.c
in root
794 27
355 25
class.c
in root
373 24
power.h
in power
124 22
145 22
regcache.c
in regmap
528 22
regmap-irq.c
in regmap
827 21
521 18
devtmpfs.c
in root
385 17
213 17
123 15
wakeirq.c
in power
189 14
277 14
432 14
regmap-i2c.c
in regmap
316 13
firmware.h
in firmware_loader
126 13
204 13
404 12
158 11
trace.c
in power
190 10
isa.c
in root
139 10
164 10
227 9
soc.c
in root
196 8
base.h
in root
125 8
internal.h
in regmap
227 7
fallback.h
in firmware_loader
49 7
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
core.c
in root
2938 171 1