drivers/firmware/xilinx/zynqmp-debug.c
Source file repositories/reference/linux-study-clean/drivers/firmware/xilinx/zynqmp-debug.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/firmware/xilinx/zynqmp-debug.c- Extension
.c- Size
- 11247 bytes
- Lines
- 413
- Domain
- Driver Families
- Bucket
- drivers/firmware
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/compiler.hlinux/module.hlinux/slab.hlinux/debugfs.hlinux/uaccess.hlinux/firmware/xlnx-zynqmp.hzynqmp-debug.h
Detected Declarations
struct pm_api_infofunction zynqmp_pm_ioctlfunction zynqmp_pm_argument_valuefunction get_pm_api_idfunction process_api_requestfunction zynqmp_pm_debugfs_api_writefunction zynqmp_pm_debugfs_api_readfunction zynqmp_pm_api_debugfs_initfunction zynqmp_pm_api_debugfs_exit
Annotated Snippet
static const struct file_operations fops_zynqmp_pm_dbgfs = {
.owner = THIS_MODULE,
.write = zynqmp_pm_debugfs_api_write,
.read = zynqmp_pm_debugfs_api_read,
};
/**
* zynqmp_pm_api_debugfs_init - Initialize debugfs interface
*
* Return: None
*/
void zynqmp_pm_api_debugfs_init(void)
{
/* Initialize debugfs interface */
firmware_debugfs_root = debugfs_create_dir("zynqmp-firmware", NULL);
debugfs_create_file("pm", 0660, firmware_debugfs_root, NULL,
&fops_zynqmp_pm_dbgfs);
}
/**
* zynqmp_pm_api_debugfs_exit - Remove debugfs interface
*
* Return: None
*/
void zynqmp_pm_api_debugfs_exit(void)
{
debugfs_remove_recursive(firmware_debugfs_root);
}
Annotation
- Immediate include surface: `linux/compiler.h`, `linux/module.h`, `linux/slab.h`, `linux/debugfs.h`, `linux/uaccess.h`, `linux/firmware/xlnx-zynqmp.h`, `zynqmp-debug.h`.
- Detected declarations: `struct pm_api_info`, `function zynqmp_pm_ioctl`, `function zynqmp_pm_argument_value`, `function get_pm_api_id`, `function process_api_request`, `function zynqmp_pm_debugfs_api_write`, `function zynqmp_pm_debugfs_api_read`, `function zynqmp_pm_api_debugfs_init`, `function zynqmp_pm_api_debugfs_exit`.
- Atlas domain: Driver Families / drivers/firmware.
- Implementation status: pattern implementation candidate.
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.