net/phonet/af_phonet.c
Source file repositories/reference/linux-study-clean/net/phonet/af_phonet.c
File Facts
- System
- Linux kernel
- Corpus path
net/phonet/af_phonet.c- Extension
.c- Size
- 12522 bytes
- Lines
- 544
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/slab.hlinux/unaligned.hnet/sock.hlinux/if_phonet.hlinux/phonet.hnet/phonet/phonet.hnet/phonet/pn_dev.h
Detected Declarations
function phonet_proto_putfunction pn_socket_createfunction pn_header_createfunction pn_header_parsefunction pn_sendfunction pn_raw_sendfunction pn_skb_sendfunction can_respondfunction send_obj_unreachablefunction send_reset_indicationsfunction phonet_rcvfunction phonet_proto_registerfunction phonet_proto_unregisterfunction phonet_initfunction phonet_exitmodule init phonet_initexport phonet_header_opsexport pn_skb_sendexport phonet_proto_registerexport phonet_proto_unregister
Annotated Snippet
module_init(phonet_init);
module_exit(phonet_exit);
MODULE_DESCRIPTION("Phonet protocol stack for Linux");
MODULE_LICENSE("GPL");
MODULE_ALIAS_NETPROTO(PF_PHONET);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/unaligned.h`, `net/sock.h`, `linux/if_phonet.h`, `linux/phonet.h`, `net/phonet/phonet.h`.
- Detected declarations: `function phonet_proto_put`, `function pn_socket_create`, `function pn_header_create`, `function pn_header_parse`, `function pn_send`, `function pn_raw_send`, `function pn_skb_send`, `function can_respond`, `function send_obj_unreachable`, `function send_reset_indications`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- 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.