Skip to content

community_6_net

grisun0 edited this page Nov 24, 2026 · 1 revision

net

Community 6 | 14 files | cohesion 0.60

Definition

This community groups 14 file(s) rooted at net with dominant language c (cohesion 0.60). Central symbols: CHECK, DRIVERS_VIRTIO_NET_H, LNX_AF_INET, LNX_EAFNOSUPPORT, LNX_EAGAIN, LNX_EALREADY, LNX_EBADF, LNX_ECONNREFUSED. Core file: net/net.c (157 symbols). Documented purpose: Docstring: drivers/virtio_net.c -- Polled legacy virtio-net driver..

Files

File Language Layer Symbols Doc
drivers/virtio_net.c c infrastructure 44 yes
headers/drivers/virtio_net.h h infrastructure 9 yes
headers/net.h h utility 103 yes
headers/net/rtl8139.h h utility 8 no
headers/tls.h h utility 73 yes
headers/tls_port.h h utility 49 yes
headers/tls_roots.h h utility 0 yes
net/net.c c utility 157 yes
net/rtl8139.c c utility 29 no
net/tls.c c utility 27 yes
net/tls_crypto.c c utility 78 yes
net/tls_x509.c c utility 23 yes
progs/tls_u/tls_u_main.c c utility 5 yes
tls_test.c c testing 23 yes

Key Symbols

Internal vs External Edges

  • Internal resolved imports (EXTRACTED): 21
  • Cross-boundary resolved imports (EXTRACTED): 14

Connections

  • [EXTRACTED] depends_on community 6 <-> 0 (strength 0.9): Extracted import edge crosses communities: drivers/virtio_net.c imports headers/drivers/pci.h.
  • [EXTRACTED] depends_on community 6 <-> 2 (strength 0.9): Extracted import edge crosses communities: headers/tls_port.h imports kernel/string.c.
  • [EXTRACTED] depends_on community 6 <-> 4 (strength 0.9): Extracted import edge crosses communities: headers/tls_port.h imports kernel/time.c.
  • [INFERRED] shares_context community 1 <-> 6 (strength 0.5): Inferred shared context (layer utility) with no import path between community 1 (progs/doomgeneric: d_englsh) and community 6 (net).

Risks

  • [dataflow DEAD_STORE] drivers/virtio_net.c:146 vnet_desc d: d assigned at line 146 but never read afterwards.
  • [dataflow DEAD_STORE] net/net.c:302 net_dns_resolve rc: rc assigned at line 302 but never read afterwards.
  • [dataflow DEAD_STORE] net/net.c:1224 net_sys_socket nonblock: nonblock assigned at line 1224 but never read afterwards.
  • [dataflow DEAD_STORE] net/net.c:1225 net_sys_socket cloexec: cloexec assigned at line 1225 but never read afterwards.
  • [dataflow UNINIT_USE] net/tls_crypto.c:1227 ecdsa_verify gen: gen may be read before initialization (declared line 1223).

Open Questions

  • Why do 2 file(s) lack file-level docs (e.g. headers/net/rtl8139.h)? What purpose do they serve?
  • What would break if the most connected file in net changed?
  • Should net be split, given cohesion 0.60?

Sources

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally