drivers/gpu/drm/armada/armada_debugfs.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/armada/armada_debugfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/armada/armada_debugfs.c- Extension
.c- Size
- 2684 bytes
- Lines
- 114
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/ctype.hlinux/debugfs.hlinux/module.hlinux/seq_file.hlinux/uaccess.hdrm/drm_debugfs.hdrm/drm_file.hdrm/drm_print.harmada_crtc.harmada_drm.h
Detected Declarations
function Copyrightfunction armada_debugfs_crtc_reg_showfunction armada_debugfs_crtc_reg_openfunction armada_debugfs_crtc_reg_writefunction armada_drm_crtc_debugfs_initfunction armada_drm_debugfs_init
Annotated Snippet
static const struct file_operations armada_debugfs_crtc_reg_fops = {
.owner = THIS_MODULE,
.open = armada_debugfs_crtc_reg_open,
.read = seq_read,
.write = armada_debugfs_crtc_reg_write,
.llseek = seq_lseek,
.release = single_release,
};
void armada_drm_crtc_debugfs_init(struct armada_crtc *dcrtc)
{
debugfs_create_file("armada-regs", 0600, dcrtc->crtc.debugfs_entry,
dcrtc, &armada_debugfs_crtc_reg_fops);
}
static struct drm_info_list armada_debugfs_list[] = {
{ "gem_linear", armada_debugfs_gem_linear_show, 0 },
};
#define ARMADA_DEBUGFS_ENTRIES ARRAY_SIZE(armada_debugfs_list)
int armada_drm_debugfs_init(struct drm_minor *minor)
{
drm_debugfs_create_files(armada_debugfs_list, ARMADA_DEBUGFS_ENTRIES,
minor->debugfs_root, minor);
return 0;
}
Annotation
- Immediate include surface: `linux/ctype.h`, `linux/debugfs.h`, `linux/module.h`, `linux/seq_file.h`, `linux/uaccess.h`, `drm/drm_debugfs.h`, `drm/drm_file.h`, `drm/drm_print.h`.
- Detected declarations: `function Copyright`, `function armada_debugfs_crtc_reg_show`, `function armada_debugfs_crtc_reg_open`, `function armada_debugfs_crtc_reg_write`, `function armada_drm_crtc_debugfs_init`, `function armada_drm_debugfs_init`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.