drivers/net/ppp/ppp_async.c
Source file repositories/reference/linux-study-clean/drivers/net/ppp/ppp_async.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ppp/ppp_async.c- Extension
.c- Size
- 23827 bytes
- Lines
- 1017
- 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.
- 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/kernel.hlinux/skbuff.hlinux/tty.hlinux/netdevice.hlinux/poll.hlinux/crc-ccitt.hlinux/ppp_defs.hlinux/ppp-ioctl.hlinux/ppp_channel.hlinux/spinlock.hlinux/init.hlinux/interrupt.hlinux/jiffies.hlinux/slab.hlinux/unaligned.hlinux/uaccess.hasm/string.h
Detected Declarations
struct asyncpppfunction ap_putfunction ppp_asynctty_openfunction ppp_asynctty_closefunction ppp_asynctty_hangupfunction ppp_asynctty_readfunction ppp_asynctty_writefunction ppp_asynctty_ioctlfunction ppp_asynctty_receivefunction ppp_asynctty_wakeupfunction ppp_async_initfunction ppp_async_ioctlfunction ppp_async_processfunction stuffingfunction ppp_async_encodefunction ppp_async_sendfunction ppp_async_pushfunction ppp_async_flush_outputfunction scan_ordinaryfunction process_input_packetfunction ppp_async_inputfunction datafunction ppp_async_cleanupmodule init ppp_async_init
Annotated Snippet
module_init(ppp_async_init);
module_exit(ppp_async_cleanup);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/skbuff.h`, `linux/tty.h`, `linux/netdevice.h`, `linux/poll.h`, `linux/crc-ccitt.h`, `linux/ppp_defs.h`.
- Detected declarations: `struct asyncppp`, `function ap_put`, `function ppp_asynctty_open`, `function ppp_asynctty_close`, `function ppp_asynctty_hangup`, `function ppp_asynctty_read`, `function ppp_asynctty_write`, `function ppp_asynctty_ioctl`, `function ppp_asynctty_receive`, `function ppp_asynctty_wakeup`.
- 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.