drivers/net/ieee802154/fakelb.c
Source file repositories/reference/linux-study-clean/drivers/net/ieee802154/fakelb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ieee802154/fakelb.c- Extension
.c- Size
- 6291 bytes
- Lines
- 264
- 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/module.hlinux/timer.hlinux/platform_device.hlinux/netdevice.hlinux/device.hlinux/spinlock.hnet/mac802154.hnet/cfg802154.h
Detected Declarations
struct fakelb_phyfunction fakelb_hw_edfunction fakelb_hw_channelfunction fakelb_hw_xmitfunction fakelb_hw_startfunction fakelb_hw_stopfunction fakelb_set_promiscuous_modefunction fakelb_add_onefunction fakelb_delfunction fakelb_probefunction fakelb_removefunction fakelb_init_modulefunction fake_remove_modulemodule init fakelb_init_module
Annotated Snippet
module_init(fakelb_init_module);
module_exit(fake_remove_module);
MODULE_DESCRIPTION("IEEE 802.15.4 loopback driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/timer.h`, `linux/platform_device.h`, `linux/netdevice.h`, `linux/device.h`, `linux/spinlock.h`, `net/mac802154.h`, `net/cfg802154.h`.
- Detected declarations: `struct fakelb_phy`, `function fakelb_hw_ed`, `function fakelb_hw_channel`, `function fakelb_hw_xmit`, `function fakelb_hw_start`, `function fakelb_hw_stop`, `function fakelb_set_promiscuous_mode`, `function fakelb_add_one`, `function fakelb_del`, `function fakelb_probe`.
- 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.