Skip to content

内核分析

对 Linux 内核子系统与驱动源码的逐段阅读与分析。

Linux 内核

详见 Linux 内核分析 目录。

USB 子系统

  1. USB 2.0 枚举流程 — 协议层 Token / DATA0 / DATA1 / ACK
  2. hub_port_init 调用链 — 插盘到地址分配、读设备描述符
  3. usb_get_descriptor 调用链 — core 到 xHCI 的 URB 路径
  4. 枚举与两轮 Probeusb_new_device 与驱动绑定
  5. UVC 驱动分析 — USB Video Class 类驱动结构
  6. Gadget 子系统概览 — Device 侧 UDC / composite / configfs
  7. Configfs 组装分析gadget_info / cdev 拼装与 bind
  8. UDC bind 分析udc/core 配对与 pullup
  9. DWC2 接口总览gadget_opsep_ops 交付边界
  10. Composite EP0 枚举composite_setup、SET_CONFIGURATION
  11. ACM Function 路径 — bind、set_alt 与 ttyGS 数据面
  12. Gadget CDC ACM 串口实践 — configfs + ttyGS0

Pinctrl / GPIO 子系统

Sound / ALSA

BPF / kprobe

调试与实践

针对具体问题的排查与实验记录(非成体系流程文)。

基于 VitePress 构建