drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c- Extension
.c- Size
- 18089 bytes
- Lines
- 682
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- 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
drm/drm_managed.hlinux/kobject.hlinux/sysfs.hxe_device_types.hxe_gt.hxe_hw_engine_class_sysfs.hxe_pm.h
Detected Declarations
function xe_hw_engine_timeout_in_rangefunction xe_hw_engine_sysfs_kobj_releasefunction xe_hw_engine_class_sysfs_attr_showfunction xe_hw_engine_class_sysfs_attr_storefunction job_timeout_max_storefunction job_timeout_max_showfunction job_timeout_min_storefunction job_timeout_min_showfunction job_timeout_storefunction job_timeout_showfunction job_timeout_defaultfunction job_timeout_min_defaultfunction job_timeout_max_defaultfunction timeslice_duration_storefunction timeslice_duration_max_storefunction timeslice_duration_max_showfunction timeslice_duration_min_storefunction timeslice_duration_min_showfunction timeslice_duration_showfunction timeslice_defaultfunction timeslice_min_defaultfunction timeslice_max_defaultfunction preempt_timeout_storefunction preempt_timeout_showfunction preempt_timeout_defaultfunction preempt_timeout_min_defaultfunction preempt_timeout_max_defaultfunction preempt_timeout_max_storefunction preempt_timeout_max_showfunction preempt_timeout_min_storefunction preempt_timeout_min_showfunction kobj_xe_hw_engine_class_finifunction kobj_xe_hw_engine_classfunction hw_engine_class_defaults_finifunction xe_add_hw_engine_class_defaultsfunction hw_engine_class_sysfs_finifunction xe_hw_engine_class_sysfs_initfunction for_each_hw_engine
Annotated Snippet
if (!name) {
err = -EINVAL;
goto err_object;
}
keclass = kobj_xe_hw_engine_class(xe, kobj, name);
if (!keclass) {
err = -EINVAL;
goto err_object;
}
keclass->eclass = hwe->eclass;
err = xe_add_hw_engine_class_defaults(xe, &keclass->base);
if (err)
goto err_object;
err = sysfs_create_files(&keclass->base, files);
if (err)
goto err_object;
}
return devm_add_action_or_reset(xe->drm.dev, hw_engine_class_sysfs_fini, kobj);
err_object:
kobject_put(kobj);
return err;
}
Annotation
- Immediate include surface: `drm/drm_managed.h`, `linux/kobject.h`, `linux/sysfs.h`, `xe_device_types.h`, `xe_gt.h`, `xe_hw_engine_class_sysfs.h`, `xe_pm.h`.
- Detected declarations: `function xe_hw_engine_timeout_in_range`, `function xe_hw_engine_sysfs_kobj_release`, `function xe_hw_engine_class_sysfs_attr_show`, `function xe_hw_engine_class_sysfs_attr_store`, `function job_timeout_max_store`, `function job_timeout_max_show`, `function job_timeout_min_store`, `function job_timeout_min_show`, `function job_timeout_store`, `function job_timeout_show`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source 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.