drivers/net/wireless/broadcom/b43legacy/main.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/broadcom/b43legacy/main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/broadcom/b43legacy/main.c- Extension
.c- Size
- 111342 bytes
- Lines
- 4035
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/delay.hlinux/init.hlinux/module.hlinux/if_arp.hlinux/etherdevice.hlinux/firmware.hlinux/workqueue.hlinux/sched/signal.hlinux/skbuff.hlinux/dma-mapping.hlinux/slab.hnet/dst.hlinux/unaligned.hb43legacy.hmain.hdebugfs.hphy.hdma.hpio.hsysfs.hxmit.hradio.h
Detected Declarations
function b43legacy_ratelimitfunction b43legacyinfofunction b43legacyerrfunction b43legacywarnfunction b43legacydbgfunction b43legacy_ram_writefunction b43legacy_shm_control_wordfunction b43legacy_shm_read32function b43legacy_shm_read16function b43legacy_shm_write32function b43legacy_shm_write16function b43legacy_hf_readfunction b43legacy_hf_writefunction b43legacy_tsf_readfunction b43legacy_time_lockfunction b43legacy_time_unlockfunction b43legacy_tsf_write_lockedfunction b43legacy_tsf_writefunction b43legacy_macfilter_setfunction b43legacy_write_mac_bssid_templatesfunction b43legacy_upload_card_macaddressfunction b43legacy_set_slot_timefunction b43legacy_short_slot_timing_enablefunction b43legacy_short_slot_timing_disablefunction b43legacy_synchronize_irqfunction b43legacy_dummy_transmissionfunction b43legacy_switch_analogfunction b43legacy_wireless_core_resetfunction handle_irq_transmit_statusfunction drain_txstatus_queuefunction b43legacy_jssi_readfunction b43legacy_jssi_writefunction b43legacy_generate_noise_samplefunction b43legacy_calculate_link_qualityfunction handle_irq_noisefunction handle_irq_tbtt_indicationfunction handle_irq_atim_endfunction handle_irq_pmqfunction b43legacy_write_template_commonfunction b43legacy_antenna_to_phyctlfunction b43legacy_write_beacon_templatefunction b43legacy_write_probe_resp_plcpfunction b43legacy_write_probe_resp_templatefunction b43legacy_upload_beacon0function b43legacy_upload_beacon1function handle_irq_beaconfunction b43legacy_beacon_update_trigger_workfunction b43legacy_update_templates
Annotated Snippet
module_init(b43legacy_init)
module_exit(b43legacy_exit)
Annotation
- Immediate include surface: `linux/delay.h`, `linux/init.h`, `linux/module.h`, `linux/if_arp.h`, `linux/etherdevice.h`, `linux/firmware.h`, `linux/workqueue.h`, `linux/sched/signal.h`.
- Detected declarations: `function b43legacy_ratelimit`, `function b43legacyinfo`, `function b43legacyerr`, `function b43legacywarn`, `function b43legacydbg`, `function b43legacy_ram_write`, `function b43legacy_shm_control_word`, `function b43legacy_shm_read32`, `function b43legacy_shm_read16`, `function b43legacy_shm_write32`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.