net/phonet/pep.c
Source file repositories/reference/linux-study-clean/net/phonet/pep.c
File Facts
- System
- Linux kernel
- Corpus path
net/phonet/pep.c- Extension
.c- Size
- 31256 bytes
- Lines
- 1405
- 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.
- 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/kernel.hlinux/sched/signal.hlinux/slab.hlinux/socket.hnet/sock.hnet/tcp_states.hasm/ioctls.hlinux/phonet.hlinux/module.hnet/phonet/phonet.hnet/phonet/pep.hnet/phonet/gprs.h
Detected Declarations
function Copyrightfunction pep_replyfunction pep_indicatefunction pipe_handler_requestfunction pipe_handler_send_created_indfunction pep_accept_connfunction pep_reject_connfunction pep_ctrlreq_errorfunction pipe_snd_statusfunction pipe_grant_creditsfunction pipe_rcv_statusfunction pipe_rcv_createdfunction pipe_do_rcvfunction pipe_destructfunction pipe_negotiate_fcfunction pep_connresp_rcvfunction pep_enableresp_rcvfunction pipe_start_flow_controlfunction pipe_handler_do_rcvfunction sk_for_eachfunction sockfunction pipe_do_removefunction pep_sock_closefunction pep_sock_connectfunction pep_sock_enablefunction pep_first_packet_lengthfunction pep_ioctlfunction pep_initfunction pep_setsockoptfunction pep_getsockoptfunction pipe_skb_sendfunction pep_sendmsgfunction pep_writeablefunction pep_writefunction pep_recvmsgfunction pep_sock_unhashfunction pep_registerfunction pep_unregistermodule init pep_register
Annotated Snippet
module_init(pep_register);
module_exit(pep_unregister);
MODULE_AUTHOR("Remi Denis-Courmont, Nokia");
MODULE_DESCRIPTION("Phonet pipe protocol");
MODULE_LICENSE("GPL");
MODULE_ALIAS_NET_PF_PROTO(PF_PHONET, PN_PROTO_PIPE);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/sched/signal.h`, `linux/slab.h`, `linux/socket.h`, `net/sock.h`, `net/tcp_states.h`, `asm/ioctls.h`, `linux/phonet.h`.
- Detected declarations: `function Copyright`, `function pep_reply`, `function pep_indicate`, `function pipe_handler_request`, `function pipe_handler_send_created_ind`, `function pep_accept_conn`, `function pep_reject_conn`, `function pep_ctrlreq_error`, `function pipe_snd_status`, `function pipe_grant_credits`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- 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.