drivers/usb/host/uhci-debug.c
Source file repositories/reference/linux-study-clean/drivers/usb/host/uhci-debug.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/host/uhci-debug.c- Extension
.c- Size
- 15995 bytes
- Lines
- 638
- Domain
- Driver Families
- Bucket
- drivers/usb
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/slab.hlinux/kernel.hlinux/debugfs.hasm/io.huhci-hcd.h
Detected Declarations
struct uhci_debugfunction lprintkfunction uhci_show_tdfunction uhci_show_urbpfunction uhci_show_qhfunction list_for_each_entryfunction uhci_show_scfunction uhci_show_root_hub_statefunction uhci_show_statusfunction uhci_sprint_schedulefunction uhci_debug_openfunction uhci_debug_lseekfunction uhci_debug_readfunction uhci_debug_releasefunction lprintkfunction uhci_sprint_schedule
Annotated Snippet
static const struct file_operations uhci_debug_operations = {
.owner = THIS_MODULE,
.open = uhci_debug_open,
.llseek = uhci_debug_lseek,
.read = uhci_debug_read,
.release = uhci_debug_release,
};
#define UHCI_DEBUG_OPS
#endif /* CONFIG_DEBUG_FS */
#else /* CONFIG_DYNAMIC_DEBUG*/
static inline void lprintk(char *buf)
{}
static inline int uhci_show_qh(struct uhci_hcd *uhci,
struct uhci_qh *qh, char *buf, int len, int space)
{
return 0;
}
static inline int uhci_sprint_schedule(struct uhci_hcd *uhci,
char *buf, int len)
{
return 0;
}
#endif
Annotation
- Immediate include surface: `linux/slab.h`, `linux/kernel.h`, `linux/debugfs.h`, `asm/io.h`, `uhci-hcd.h`.
- Detected declarations: `struct uhci_debug`, `function lprintk`, `function uhci_show_td`, `function uhci_show_urbp`, `function uhci_show_qh`, `function list_for_each_entry`, `function uhci_show_sc`, `function uhci_show_root_hub_state`, `function uhci_show_status`, `function uhci_sprint_schedule`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.