SchOS/kernel/drivers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 4805dbd892 limits: 256 PCI functions, 128 sockets and devices, 64 USB interfaces
The fixed tables that a bigger machine than the one they were written
on reaches first, each raised to where it costs little:

  NPCI       64 -> 256   a desktop with cards and Thunderbolt passes 64,
                         and the devices past it -- often the disk or
                         NIC last in bus order -- were ignored; 44 KB
  NSOCK      32 -> 128   Unix sockets, which a desktop session uses by
                         the dozen; 4.9 KB each, 470 KB in all
  NDEVICE    32 -> 128   120 bytes each
  NIFDEV     16 -> 64    one dock is a hub, Ethernet, audio and a card
                         reader at two or three interfaces apiece
  NETIF_MAX   4 -> 8

Device names took one digit and clamped there, so the tenth device of
a kind and every one after it was named "...9". Two digits now.

Checked under QEMU with two bridges of test devices: 68 functions,
all in lspci, /proc/pci and /sys/bus/pci.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
2026-10-23 13:54:37 +02:00
..
audio audio: /dev/dsp, AudioEngine, and an AC'97 under it 2026-09-24 14:23:13 +02:00
bus/xhci usb: recover endpoint 0 after a failed request; report-protocol keyboards 2026-10-22 23:47:17 +02:00
gpu acpi, vga: say what the first real boot actually found 2026-10-22 23:47:17 +02:00
net irq: MSI first, and poll the INTx lines that never arrive 2026-10-22 10:29:24 +02:00
storage storage: NVMe, so a laptop's SSD is a disk SchOS can boot from 2026-10-22 15:48:11 +02:00
usb limits: 256 PCI functions, 128 sockets and devices, 64 USB interfaces 2026-10-23 13:54:37 +02:00
registry.c storage: NVMe, so a laptop's SSD is a disk SchOS can boot from 2026-10-22 15:48:11 +02:00