drivers/net/ieee802154/mac802154_hwsim.c
Source file repositories/reference/linux-study-clean/drivers/net/ieee802154/mac802154_hwsim.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ieee802154/mac802154_hwsim.c- Extension
.c- Size
- 25622 bytes
- Lines
- 1093
- 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.
- 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/module.hlinux/timer.hlinux/platform_device.hlinux/rtnetlink.hlinux/netdevice.hlinux/device.hlinux/spinlock.hnet/ieee802154_netdev.hnet/mac802154.hnet/cfg802154.hnet/genetlink.hmac802154_hwsim.h
Detected Declarations
struct hwsim_pibstruct hwsim_edge_infostruct hwsim_edgestruct hwsim_phyenum hwsim_multicast_groupsfunction hwsim_hw_edfunction hwsim_update_pibfunction hwsim_hw_channelfunction hwsim_hw_addr_filtfunction hwsim_hw_receivefunction hwsim_hw_xmitfunction hwsim_hw_startfunction hwsim_hw_stopfunction hwsim_set_promiscuous_modefunction hwsim_new_radio_nlfunction hwsim_del_radio_nlfunction append_radio_msgfunction list_for_each_entry_rcufunction hwsim_get_radiofunction hwsim_get_radio_nlfunction hwsim_dump_radio_nlfunction list_for_each_entryfunction list_for_each_entryfunction hwsim_free_edgefunction hwsim_new_edge_nlfunction hwsim_del_edge_nlfunction hwsim_set_edge_lqifunction hwsim_mcast_config_msgfunction hwsim_mcast_new_radiofunction hwsim_edge_unsubscribe_mefunction list_for_each_entry_rcufunction hwsim_subscribe_all_othersfunction list_for_each_entryfunction list_for_each_entryfunction hwsim_add_onefunction hwsim_delfunction hwsim_probefunction hwsim_removefunction hwsim_init_modulefunction hwsim_remove_modulemodule init hwsim_init_module
Annotated Snippet
module_init(hwsim_init_module);
module_exit(hwsim_remove_module);
Annotation
- Immediate include surface: `linux/module.h`, `linux/timer.h`, `linux/platform_device.h`, `linux/rtnetlink.h`, `linux/netdevice.h`, `linux/device.h`, `linux/spinlock.h`, `net/ieee802154_netdev.h`.
- Detected declarations: `struct hwsim_pib`, `struct hwsim_edge_info`, `struct hwsim_edge`, `struct hwsim_phy`, `enum hwsim_multicast_groups`, `function hwsim_hw_ed`, `function hwsim_update_pib`, `function hwsim_hw_channel`, `function hwsim_hw_addr_filt`, `function hwsim_hw_receive`.
- 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.