drivers/net/ethernet/intel/libeth/xdp.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/intel/libeth/xdp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/intel/libeth/xdp.c- Extension
.c- Size
- 12440 bytes
- Lines
- 452
- 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.
- 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/export.hnet/libeth/xdp.hpriv.h
Detected Declarations
function __libeth_xdpsq_getfunction __libeth_xdpsq_putfunction __acquiresfunction __releasesfunction libeth_xdpsq_init_timerfunction libeth_xdp_tx_return_onefunction libeth_xdp_tx_return_bulkfunction libeth_trace_xdp_exceptionfunction __libeth_xdp_tx_flush_bulkfunction libeth_xdp_xmit_return_bulkfunction libeth_xdp_init_bufffunction libeth_xdp_save_bufffunction __libeth_xdp_return_stashfunction libeth_xdp_return_bufffunction libeth_xdp_process_bufffunction __libeth_xdp_run_progfunction libeth_xdp_put_netmem_bulkfunction xdp_return_frame_bulkfunction refillfunction __libeth_xdp_set_featuresfunction libeth_xdp_set_redirectfunction libeth_xdp_module_initfunction libeth_xdp_module_exitmodule init libeth_xdp_module_initexport libeth_xdpsq_shareexport __libeth_xdpsq_getexport __libeth_xdpsq_putexport __libeth_xdpsq_lockexport __libeth_xdpsq_unlockexport libeth_xdpsq_init_timerexport libeth_xdp_tx_exceptionexport libeth_xdp_xmit_return_bulkexport libeth_xdp_load_stashexport libeth_xdp_save_stashexport __libeth_xdp_return_stashexport libeth_xdp_return_buff_slowexport libeth_xdp_buff_add_fragexport libeth_xdp_prog_exceptionexport libeth_xdp_return_buff_bulkexport libeth_xdp_queue_thresholdexport __libeth_xdp_set_featuresexport libeth_xdp_set_redirect
Annotated Snippet
module_init(libeth_xdp_module_init);
static void __exit libeth_xdp_module_exit(void)
{
libeth_detach_xdp();
}
module_exit(libeth_xdp_module_exit);
MODULE_DESCRIPTION("Common Ethernet library - XDP infra");
MODULE_IMPORT_NS("LIBETH");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/export.h`, `net/libeth/xdp.h`, `priv.h`.
- Detected declarations: `function __libeth_xdpsq_get`, `function __libeth_xdpsq_put`, `function __acquires`, `function __releases`, `function libeth_xdpsq_init_timer`, `function libeth_xdp_tx_return_one`, `function libeth_xdp_tx_return_bulk`, `function libeth_trace_xdp_exception`, `function __libeth_xdp_tx_flush_bulk`, `function libeth_xdp_xmit_return_bulk`.
- Atlas domain: Driver Families / drivers/net.
- 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.