drivers/iio/dummy/iio_dummy_evgen.c
Source file repositories/reference/linux-study-clean/drivers/iio/dummy/iio_dummy_evgen.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/iio/dummy/iio_dummy_evgen.c- Extension
.c- Size
- 5810 bytes
- Lines
- 221
- Domain
- Driver Families
- Bucket
- drivers/iio
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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
linux/kernel.hlinux/slab.hlinux/interrupt.hlinux/irq.hlinux/mutex.hlinux/module.hlinux/sysfs.hiio_dummy_evgen.hlinux/iio/iio.hlinux/iio/sysfs.hlinux/irq_sim.h
Detected Declarations
struct iio_dummy_eventgenfunction iio_dummy_evgen_createfunction iio_dummy_evgen_get_irqfunction iio_dummy_evgen_release_irqfunction iio_dummy_evgen_freefunction iio_evgen_releasefunction iio_evgen_pokefunction iio_dummy_evgen_initfunction iio_dummy_evgen_exitmodule init iio_dummy_evgen_initexport iio_dummy_evgen_get_irqexport iio_dummy_evgen_release_irqexport iio_dummy_evgen_get_regs
Annotated Snippet
ret = device_add(&iio_evgen_dev);
if (ret)
put_device(&iio_evgen_dev);
return ret;
}
module_init(iio_dummy_evgen_init);
static __exit void iio_dummy_evgen_exit(void)
{
device_unregister(&iio_evgen_dev);
}
module_exit(iio_dummy_evgen_exit);
MODULE_AUTHOR("Jonathan Cameron <jic23@kernel.org>");
MODULE_DESCRIPTION("IIO dummy driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/mutex.h`, `linux/module.h`, `linux/sysfs.h`, `iio_dummy_evgen.h`.
- Detected declarations: `struct iio_dummy_eventgen`, `function iio_dummy_evgen_create`, `function iio_dummy_evgen_get_irq`, `function iio_dummy_evgen_release_irq`, `function iio_dummy_evgen_free`, `function iio_evgen_release`, `function iio_evgen_poke`, `function iio_dummy_evgen_init`, `function iio_dummy_evgen_exit`, `module init iio_dummy_evgen_init`.
- Atlas domain: Driver Families / drivers/iio.
- Implementation status: integration 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.