drivers/net/wan/hdlc_x25.c
Source file repositories/reference/linux-study-clean/drivers/net/wan/hdlc_x25.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wan/hdlc_x25.c- Extension
.c- Size
- 9060 bytes
- Lines
- 385
- Domain
- Driver Families
- Bucket
- drivers/net
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/errno.hlinux/gfp.hlinux/hdlc.hlinux/if_arp.hlinux/inetdevice.hlinux/init.hlinux/kernel.hlinux/lapb.hlinux/module.hlinux/pkt_sched.hlinux/poll.hlinux/rtnetlink.hlinux/skbuff.hnet/x25device.h
Detected Declarations
struct x25_statefunction x25_rx_queue_kickfunction x25_connect_disconnectfunction x25_connectedfunction x25_disconnectedfunction x25_data_indicationfunction x25_data_transmitfunction x25_xmitfunction x25_openfunction x25_closefunction x25_rxfunction x25_ioctlfunction hdlc_x25_initfunction hdlc_x25_exitmodule init hdlc_x25_init
Annotated Snippet
module_init(hdlc_x25_init);
module_exit(hdlc_x25_exit);
MODULE_AUTHOR("Krzysztof Halasa <khc@pm.waw.pl>");
MODULE_DESCRIPTION("X.25 protocol support for generic HDLC");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/errno.h`, `linux/gfp.h`, `linux/hdlc.h`, `linux/if_arp.h`, `linux/inetdevice.h`, `linux/init.h`, `linux/kernel.h`, `linux/lapb.h`.
- Detected declarations: `struct x25_state`, `function x25_rx_queue_kick`, `function x25_connect_disconnect`, `function x25_connected`, `function x25_disconnected`, `function x25_data_indication`, `function x25_data_transmit`, `function x25_xmit`, `function x25_open`, `function x25_close`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.