Linux / Drivers / Hid
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 196 files with 77,355 lines of code.
    • 18 very long files (31,714 lines of code)
    • 35 long files (24,688 lines of code)
    • 35 medium size files (11,031 lines of codeclsfd_ftr_w_mp_ins)
    • 43 small files (6,129 lines of code)
    • 65 very small files (3,793 lines of code)
40% | 31% | 14% | 7% | 4%
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
c42% | 33% | 13% | 7% | 3%
h23% | 14% | 21% | 13% | 26%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT47% | 28% | 13% | 6% | 4%
usbhid37% | 48% | 8% | 4% | 1%
intel-ish-hid0% | 62% | 17% | 13% | 6%
i2c-hid0% | 52% | 25% | 14% | 7%
amd-sfh-hid0% | 38% | 41% | 13% | 7%
surface-hid0% | 0% | 33% | 57% | 8%
Longest Files (Top 50)
File# lines# units
4058 90
3273 111
hid-sony.c
in root
2340 60
2176 79
1879 69
hid-core.c
in root
1842 79
1756 40
1631 35
1585 33
1582 36
1403 64
hid-core.c
in usbhid
1308 49
1209 25
1185 34
1141 17
hid-ids.h
in root
1130 -
1120 31
1096 7
hid-pidff.c
in usbhid
981 36
hid-asus.c
in root
946 26
945 43
836 21
hid-lg.c
in root
823 8
i2c-hid-core.c
in i2c-hid
821 32
814 22
787 32
762 -
756 16
744 15
738 21
727 15
hiddev.c
in usbhid
722 15
716 26
715 31
client.c
in intel-ish-hid/ishtp
713 25
hid-kye.c
in root
699 2
amd_sfh_hid_report_desc.h
in amd-sfh-hid/hid_descriptor
691 -
hid-alps.c
in root
687 16
682 27
ishtp-hid-client.c
in intel-ish-hid
682 20
654 11
ishtp-fw-loader.c
in intel-ish-hid
651 18
646 17
642 1
hbm.c
in intel-ish-hid/ishtp
627 24
623 36
uhid.c
in root
614 29
586 19
hid-rmi.c
in root
563 24
ipc.c
in intel-ish-hid/ipc
537 30
Files With Most Units (Top 50)
File# lines# units
3273 111
4058 90
hid-core.c
in root
1842 79
2176 79
1879 69
1403 64
hid-sony.c
in root
2340 60
hid-core.c
in usbhid
1308 49
945 43
1756 40
hid-pidff.c
in usbhid
981 36
1582 36
623 36
1631 35
bus.c
in intel-ish-hid/ishtp
463 35
1185 34
1585 33
787 32
i2c-hid-core.c
in i2c-hid
821 32
1120 31
715 31
ipc.c
in intel-ish-hid/ipc
537 30
uhid.c
in root
614 29
531 29
682 27
716 26
hid-asus.c
in root
946 26
client.c
in intel-ish-hid/ishtp
713 25
1209 25
hbm.c
in intel-ish-hid/ishtp
627 24
490 24
hid-rmi.c
in root
563 24
456 22
814 22
457 22
361 21
738 21
836 21
242 21
ishtp-hid-client.c
in intel-ish-hid
682 20
366 19
586 19
hid-led.c
in root
413 19
ishtp-fw-loader.c
in intel-ish-hid
651 18
464 18
646 17
519 17
441 17
1141 17
hid-alps.c
in root
687 16
Files With Long Lines (Top 7)

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

File# lines# units# long lines
1096 7 13
1209 25 9
3273 111 2
716 26 1
1582 36 1
250 5 1
1585 33 1