net/mac80211/main.c
Source file repositories/reference/linux-study-clean/net/mac80211/main.c
File Facts
- System
- Linux kernel
- Corpus path
net/mac80211/main.c- Extension
.c- Size
- 53214 bytes
- Lines
- 1836
- 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
net/mac80211.hlinux/module.hlinux/fips.hlinux/init.hlinux/netdevice.hlinux/types.hlinux/slab.hlinux/skbuff.hlinux/etherdevice.hlinux/if_arp.hlinux/rtnetlink.hlinux/bitmap.hlinux/inetdevice.hnet/net_namespace.hnet/dropreason.hnet/cfg80211.hnet/addrconf.hieee80211_i.hdriver-ops.hrate.hmesh.hwep.hled.hdebugfs.h
Detected Declarations
function Copyrightfunction ieee80211_reconfig_filterfunction ieee80211_calc_hw_conf_chanfunction ieee80211_hw_configfunction _ieee80211_hw_conf_chanfunction ieee80211_hw_conf_chanfunction ieee80211_hw_conf_initfunction ieee80211_emulate_add_chanctxfunction ieee80211_emulate_remove_chanctxfunction ieee80211_emulate_change_chanctxfunction ieee80211_emulate_switch_vif_chanctxfunction ieee80211_bss_info_change_notifyfunction ieee80211_vif_cfg_change_notifyfunction ieee80211_link_info_change_notifyfunction ieee80211_reset_erp_infofunction ieee80211_handle_queued_framesfunction ieee80211_tasklet_handlerfunction ieee80211_restart_workfunction list_for_each_entryfunction ieee80211_restart_hwfunction ieee80211_ifa_changedfunction ieee80211_ifa6_changedfunction ieee80211_init_cipher_suitesfunction ieee80211_ifcomb_checkfunction ieee80211_create_default_chandeffunction ieee80211_register_hwfunction for_each_sband_iftype_datafunction ieee80211_unregister_hwfunction ieee80211_free_ack_framefunction ieee80211_free_hwfunction ieee80211_initfunction ieee80211_exitmodule init ieee80211_initexport ieee80211_emulate_add_chanctxexport ieee80211_emulate_remove_chanctxexport ieee80211_emulate_change_chanctxexport ieee80211_emulate_switch_vif_chanctxexport ieee80211_restart_hwexport ieee80211_alloc_hw_nmexport ieee80211_register_hwexport ieee80211_unregister_hwexport ieee80211_free_hw
Annotated Snippet
subsys_initcall(ieee80211_init);
module_exit(ieee80211_exit);
MODULE_DESCRIPTION("IEEE 802.11 subsystem");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `net/mac80211.h`, `linux/module.h`, `linux/fips.h`, `linux/init.h`, `linux/netdevice.h`, `linux/types.h`, `linux/slab.h`, `linux/skbuff.h`.
- Detected declarations: `function Copyright`, `function ieee80211_reconfig_filter`, `function ieee80211_calc_hw_conf_chan`, `function ieee80211_hw_config`, `function _ieee80211_hw_conf_chan`, `function ieee80211_hw_conf_chan`, `function ieee80211_hw_conf_init`, `function ieee80211_emulate_add_chanctx`, `function ieee80211_emulate_remove_chanctx`, `function ieee80211_emulate_change_chanctx`.
- 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.