drivers/comedi/drivers/ni_routes.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/ni_routes.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/ni_routes.c- Extension
.c- Size
- 16164 bytes
- Lines
- 559
- Domain
- Driver Families
- Bucket
- drivers/comedi
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/slab.hlinux/bsearch.hlinux/sort.hlinux/comedi.hni_routes.hni_routing/ni_route_values.hni_routing/ni_device_routes.h
Detected Declarations
function ni_find_valid_routesfunction ni_find_device_routesfunction ni_assign_device_routesfunction ni_count_valid_routesfunction ni_get_valid_routesfunction ni_is_cmd_destfunction _ni_sort_destcmpfunction _ni_sort_srccmpfunction ni_sort_device_routesfunction ni_sort_all_device_routesfunction _ni_bsearch_destcmpfunction _ni_bsearch_srccmpfunction ni_find_route_setfunction ni_route_set_has_sourcefunction ni_lookup_route_registerfunction ni_route_to_registerfunction ni_find_route_sourcefunction ni_routes_module_initfunction ni_routes_module_exitmodule init ni_routes_module_initexport ni_assign_device_routesexport ni_count_valid_routesexport ni_get_valid_routesexport ni_is_cmd_destexport ni_sort_device_routesexport ni_find_route_setexport ni_route_set_has_sourceexport ni_lookup_route_registerexport ni_route_to_registerexport ni_find_route_source
Annotated Snippet
module_init(ni_routes_module_init);
module_exit(ni_routes_module_exit);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi helper for routing signals-->terminals for NI");
MODULE_LICENSE("GPL");
/* **** END simple module entry/exit functions **** */
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/bsearch.h`, `linux/sort.h`, `linux/comedi.h`, `ni_routes.h`, `ni_routing/ni_route_values.h`, `ni_routing/ni_device_routes.h`.
- Detected declarations: `function ni_find_valid_routes`, `function ni_find_device_routes`, `function ni_assign_device_routes`, `function ni_count_valid_routes`, `function ni_get_valid_routes`, `function ni_is_cmd_dest`, `function _ni_sort_destcmp`, `function _ni_sort_srccmp`, `function ni_sort_device_routes`, `function ni_sort_all_device_routes`.
- Atlas domain: Driver Families / drivers/comedi.
- Implementation status: integration 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.