drivers/misc/c2port/core.c
Source file repositories/reference/linux-study-clean/drivers/misc/c2port/core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/c2port/core.c- Extension
.c- Size
- 22227 bytes
- Lines
- 1012
- Domain
- Driver Families
- Bucket
- drivers/misc
- 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/module.hlinux/init.hlinux/device.hlinux/errno.hlinux/err.hlinux/kernel.hlinux/ctype.hlinux/delay.hlinux/idr.hlinux/sched.hlinux/slab.hlinux/c2port.h
Detected Declarations
function c2port_resetfunction c2port_strobe_ckfunction c2port_write_arfunction c2port_read_arfunction c2port_write_drfunction c2port_read_drfunction c2port_poll_in_busyfunction c2port_poll_out_readyfunction c2port_show_namefunction c2port_show_flash_blocks_numfunction c2port_show_flash_block_sizefunction c2port_show_flash_sizefunction access_showfunction access_storefunction c2port_store_resetfunction __c2port_show_dev_idfunction c2port_show_dev_idfunction __c2port_show_rev_idfunction c2port_show_rev_idfunction c2port_show_flash_accessfunction __c2port_store_flash_accessfunction c2port_store_flash_accessfunction __c2port_write_flash_erasefunction c2port_store_flash_erasefunction __c2port_read_flash_datafunction c2port_read_flash_datafunction __c2port_write_flash_datafunction c2port_write_flash_datafunction c2port_bin_attr_sizefunction c2port_device_unregisterfunction c2port_initfunction c2port_exitmodule init c2port_initexport c2port_device_registerexport c2port_device_unregister
Annotated Snippet
module_init(c2port_init);
module_exit(c2port_exit);
MODULE_AUTHOR("Rodolfo Giometti <giometti@linux.it>");
MODULE_DESCRIPTION("Silicon Labs C2 port support v. " DRIVER_VERSION);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/device.h`, `linux/errno.h`, `linux/err.h`, `linux/kernel.h`, `linux/ctype.h`, `linux/delay.h`.
- Detected declarations: `function c2port_reset`, `function c2port_strobe_ck`, `function c2port_write_ar`, `function c2port_read_ar`, `function c2port_write_dr`, `function c2port_read_dr`, `function c2port_poll_in_busy`, `function c2port_poll_out_ready`, `function c2port_show_name`, `function c2port_show_flash_blocks_num`.
- Atlas domain: Driver Families / drivers/misc.
- 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.