drivers/connector/cn_proc.c
Source file repositories/reference/linux-study-clean/drivers/connector/cn_proc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/connector/cn_proc.c- Extension
.c- Size
- 13129 bytes
- Lines
- 484
- Domain
- Driver Families
- Bucket
- drivers/connector
- 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/ktime.hlinux/init.hlinux/connector.hlinux/gfp.hlinux/ptrace.hlinux/atomic.hlinux/pid_namespace.hlinux/cn_proc.hlinux/local_lock.h
Detected Declarations
struct local_eventfunction cn_filterfunction send_msgfunction proc_fork_connectorfunction proc_exec_connectorfunction proc_id_connectorfunction proc_sid_connectorfunction proc_ptrace_connectorfunction proc_comm_connectorfunction proc_coredump_connectorfunction proc_exit_connectorfunction cn_proc_ackfunction cn_proc_mcast_ctlfunction cn_proc_initmodule init cn_proc_init
Annotated Snippet
device_initcall(cn_proc_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/ktime.h`, `linux/init.h`, `linux/connector.h`, `linux/gfp.h`, `linux/ptrace.h`, `linux/atomic.h`, `linux/pid_namespace.h`.
- Detected declarations: `struct local_event`, `function cn_filter`, `function send_msg`, `function proc_fork_connector`, `function proc_exec_connector`, `function proc_id_connector`, `function proc_sid_connector`, `function proc_ptrace_connector`, `function proc_comm_connector`, `function proc_coredump_connector`.
- Atlas domain: Driver Families / drivers/connector.
- 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.