drivers/net/ppp/pppox.c
Source file repositories/reference/linux-study-clean/drivers/net/ppp/pppox.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ppp/pppox.c- Extension
.c- Size
- 3469 bytes
- Lines
- 156
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/string.hlinux/module.hlinux/kernel.hlinux/compat.hlinux/errno.hlinux/netdevice.hlinux/net.hlinux/init.hlinux/if_pppox.hlinux/ppp_defs.hlinux/ppp-ioctl.hlinux/ppp_channel.hlinux/kmod.hnet/sock.hlinux/uaccess.h
Detected Declarations
function register_pppox_protofunction unregister_pppox_protofunction pppox_unbind_sockfunction pppox_ioctlfunction pppox_compat_ioctlfunction pppox_createfunction pppox_initfunction pppox_exitmodule init pppox_initexport register_pppox_protoexport unregister_pppox_protoexport pppox_unbind_sockexport pppox_ioctlexport pppox_compat_ioctl
Annotated Snippet
module_init(pppox_init);
module_exit(pppox_exit);
MODULE_AUTHOR("Michal Ostrowski <mostrows@speakeasy.net>");
MODULE_DESCRIPTION("PPP over Ethernet driver (generic socket layer)");
MODULE_LICENSE("GPL");
MODULE_ALIAS_NETPROTO(PF_PPPOX);
Annotation
- Immediate include surface: `linux/string.h`, `linux/module.h`, `linux/kernel.h`, `linux/compat.h`, `linux/errno.h`, `linux/netdevice.h`, `linux/net.h`, `linux/init.h`.
- Detected declarations: `function register_pppox_proto`, `function unregister_pppox_proto`, `function pppox_unbind_sock`, `function pppox_ioctl`, `function pppox_compat_ioctl`, `function pppox_create`, `function pppox_init`, `function pppox_exit`, `module init pppox_init`, `export register_pppox_proto`.
- 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.
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.