drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.c- Extension
.c- Size
- 4080 bytes
- Lines
- 176
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/fs.hdrm/drm_print.hgt/intel_gt_debugfs.hintel_guc.hintel_guc_log.hintel_guc_log_debugfs.hintel_uc.h
Detected Declarations
function obj_to_guc_log_dump_sizefunction guc_log_dump_sizefunction guc_log_dump_showfunction guc_load_err_dump_sizefunction guc_load_err_log_dump_showfunction guc_log_level_getfunction guc_log_level_setfunction guc_log_relay_openfunction guc_log_relay_writefunction guc_log_relay_releasefunction intel_guc_log_debugfs_register
Annotated Snippet
static const struct file_operations guc_log_relay_fops = {
.owner = THIS_MODULE,
.open = guc_log_relay_open,
.write = guc_log_relay_write,
.release = guc_log_relay_release,
};
void intel_guc_log_debugfs_register(struct intel_guc_log *log,
struct dentry *root)
{
static const struct intel_gt_debugfs_file files[] = {
{ .name = "guc_log_dump", .fops = &guc_log_dump_fops },
{ .name = "guc_load_err_log_dump", .fops = &guc_load_err_log_dump_fops},
{ .name = "guc_log_level", .fops = &guc_log_level_fops },
{ .name = "guc_log_relay", .fops = &guc_log_relay_fops },
};
if (!intel_guc_is_supported(log_to_guc(log)))
return;
intel_gt_debugfs_register_files(root, files, ARRAY_SIZE(files), log);
}
Annotation
- Immediate include surface: `linux/fs.h`, `drm/drm_print.h`, `gt/intel_gt_debugfs.h`, `intel_guc.h`, `intel_guc_log.h`, `intel_guc_log_debugfs.h`, `intel_uc.h`.
- Detected declarations: `function obj_to_guc_log_dump_size`, `function guc_log_dump_size`, `function guc_log_dump_show`, `function guc_load_err_dump_size`, `function guc_load_err_log_dump_show`, `function guc_log_level_get`, `function guc_log_level_set`, `function guc_log_relay_open`, `function guc_log_relay_write`, `function guc_log_relay_release`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.