Linux / Drivers / Char
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 207 files with 69,668 lines of code.
    • 11 very long files (19,181 lines of code)
    • 23 long files (15,365 lines of code)
    • 68 medium size files (24,283 lines of codeclsfd_ftr_w_mp_ins)
    • 55 small files (8,178 lines of code)
    • 50 very small files (2,661 lines of code)
27% | 22% | 34% | 11% | 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
c28% | 22% | 35% | 11% | 2%
h0% | 0% | 20% | 32% | 46%
S0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ipmi47% | 18% | 23% | 7% | 2%
pcmcia83% | 10% | 5% | 0% | <1%
ROOT29% | 30% | 28% | 10% | 1%
xillybus86% | 0% | 0% | 6% | 7%
agp10% | 34% | 50% | 3% | <1%
tpm0% | 21% | 63% | 11% | 4%
hw_random0% | 8% | 32% | 45% | 13%
xilinx_hwicap0% | 56% | 0% | 40% | 2%
mwave0% | 23% | 68% | 0% | 7%
Longest Files (Top 50)
File# lines# units
3781 122
synclink_cs.c
in pcmcia
2926 106
1566 50
1504 61
xillyusb.c
in xillybus
1501 38
cm4000_cs.c
in pcmcia
1473 29
1466 56
xillybus_core.c
in xillybus
1313 22
sonypi.c
in root
1250 42
random.c
in root
1246 66
1155 49
generic.c
in agp
980 32
967 38
871 28
lp.c
in root
812 26
hpet.c
in root
797 21
772 33
715 19
702 24
tlclk.c
in root
669 28
n2-drv.c
in hw_random
652 27
ppdev.c
in root
649 17
applicom.c
in root
638 8
xilinx_hwicap.c
in xilinx_hwicap
622 13
603 18
mem.c
in root
589 38
586 12
562 15
549 16
tpm_crb.c
in tpm
541 22
mwavedd.c
in mwave
540 9
cm4040_cs.c
in pcmcia
526 20
513 17
510 20
498 17
495 13
core.c
in hw_random
492 27
488 18
3780i.c
in mwave
484 15
477 16
cctrng.c
in hw_random
472 26
dtlk.c
in root
466 17
ati-agp.c
in agp
460 19
460 22
smapi.c
in mwave
453 6
452 17
450 19
450 17
445 21
441 16
Files With Most Units (Top 50)
File# lines# units
3781 122
synclink_cs.c
in pcmcia
2926 106
random.c
in root
1246 66
1504 61
1466 56
1566 50
1155 49
sonypi.c
in root
1250 42
mem.c
in root
589 38
xillyusb.c
in xillybus
1501 38
967 38
772 33
generic.c
in agp
980 32
cm4000_cs.c
in pcmcia
1473 29
tlclk.c
in root
669 28
871 28
core.c
in hw_random
492 27
n2-drv.c
in hw_random
652 27
cctrng.c
in hw_random
472 26
lp.c
in root
812 26
434 24
702 24
bt-bmc.c
in ipmi
356 24
410 22
tpm_crb.c
in tpm
541 22
460 22
xillybus_core.c
in xillybus
1313 22
hpet.c
in root
797 21
445 21
nvram.c
in root
402 21
ds1620.c
in root
306 20
cm4040_cs.c
in pcmcia
526 20
510 20
omap-rng.c
in hw_random
418 19
tpm_tis.c
in tpm
313 19
450 19
ati-agp.c
in agp
460 19
715 19
488 18
st33zp24.c
in tpm/st33zp24
436 18
366 18
435 18
603 18
373 18
513 17
498 17
452 17
450 17
dtlk.c
in root
466 17
ppdev.c
in root
649 17
Files With Long Lines (Top 14)

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

File# lines# units# long lines
smapi.c
in mwave
453 6 17
123 4 8
tp3780i.c
in mwave
412 15 6
1566 50 4
3781 122 4
1504 61 3
117 7 2
1155 49 2
586 12 1
xillyusb.c
in xillybus
1501 38 1
xillybus_core.c
in xillybus
1313 22 1
967 38 1
188 5 1
381 16 1