drivers/accel/ivpu/ivpu_sysfs.c
Source file repositories/reference/linux-study-clean/drivers/accel/ivpu/ivpu_sysfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/accel/ivpu/ivpu_sysfs.c- Extension
.c- Size
- 8804 bytes
- Lines
- 300
- Domain
- Driver Families
- Bucket
- drivers/accel
- 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.
- 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/device.hlinux/err.hlinux/pm_runtime.hlinux/units.hivpu_drv.hivpu_gem.hivpu_fw.hivpu_hw.hivpu_sysfs.h
Detected Declarations
function Copyrightfunction npu_memory_utilization_showfunction sched_mode_showfunction attributesfunction hw_efficient_freq_showfunction hw_max_freq_showfunction set_min_freq_showfunction set_min_freq_storefunction set_max_freq_showfunction set_max_freq_storefunction current_freq_showfunction ivpu_sysfs_init
Annotated Snippet
if (ret) {
ivpu_warn(vdev, "Failed to add sysfs set_min_freq to device, ret %d", ret);
return;
}
ret = sysfs_add_file_to_group(&vdev->drm.dev->kobj,
&dev_attr_set_max_freq.attr,
"freq");
if (ret) {
ivpu_warn(vdev, "Failed to add sysfs set_max_freq to device, ret %d", ret);
return;
}
}
}
Annotation
- Immediate include surface: `linux/device.h`, `linux/err.h`, `linux/pm_runtime.h`, `linux/units.h`, `ivpu_drv.h`, `ivpu_gem.h`, `ivpu_fw.h`, `ivpu_hw.h`.
- Detected declarations: `function Copyright`, `function npu_memory_utilization_show`, `function sched_mode_show`, `function attributes`, `function hw_efficient_freq_show`, `function hw_max_freq_show`, `function set_min_freq_show`, `function set_min_freq_store`, `function set_max_freq_show`, `function set_max_freq_store`.
- Atlas domain: Driver Families / drivers/accel.
- Implementation status: source 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.