net/psp/psp_main.c
Source file repositories/reference/linux-study-clean/net/psp/psp_main.c
File Facts
- System
- Linux kernel
- Corpus path
net/psp/psp_main.c- Extension
.c- Size
- 13452 bytes
- Lines
- 491
- 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.
- 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/bitfield.hlinux/list.hlinux/netdevice.hlinux/xarray.hnet/net_namespace.hnet/psp.hnet/udp.hpsp.hpsp-nl-gen.h
Detected Declarations
function psp_dev_check_accessfunction psp_dev_createfunction psp_dev_freefunction psp_dev_unregisterfunction list_for_each_entry_safefunction psp_key_sizefunction psp_write_headersfunction udp_flow_src_portfunction psp_dev_encapsulatefunction psp_dev_rcvfunction psp_dev_disassoc_onefunction list_for_each_entryfunction psp_netdev_eventfunction psp_attach_netdev_notifierfunction psp_initmodule init psp_initexport psp_dev_createexport psp_dev_unregisterexport psp_key_sizeexport psp_dev_encapsulateexport psp_dev_rcv
Annotated Snippet
subsys_initcall(psp_init);
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/list.h`, `linux/netdevice.h`, `linux/xarray.h`, `net/net_namespace.h`, `net/psp.h`, `net/udp.h`, `psp.h`.
- Detected declarations: `function psp_dev_check_access`, `function psp_dev_create`, `function psp_dev_free`, `function psp_dev_unregister`, `function list_for_each_entry_safe`, `function psp_key_size`, `function psp_write_headers`, `function udp_flow_src_port`, `function psp_dev_encapsulate`, `function psp_dev_rcv`.
- 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.