drivers/net/wireless/ath/ath6kl/core.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath6kl/core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath6kl/core.c- Extension
.c- Size
- 9346 bytes
- Lines
- 368
- 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
core.hlinux/module.hlinux/moduleparam.hlinux/export.hlinux/vmalloc.hdebug.hhif-ops.hhtc-ops.hcfg80211.h
Detected Declarations
function ath6kl_core_tx_completefunction ath6kl_core_rx_completefunction ath6kl_core_initfunction ath6kl_core_cleanupfunction ath6kl_core_destroyexport ath6kl_core_tx_completeexport ath6kl_core_rx_completeexport ath6kl_core_initexport ath6kl_core_createexport ath6kl_core_cleanupexport ath6kl_core_destroy
Annotated Snippet
if (!ar->sta_list[ctr].aggr_conn) {
ath6kl_err("Failed to allocate memory for sta aggregation information\n");
ath6kl_core_destroy(ar);
return NULL;
}
}
skb_queue_head_init(&ar->mcastpsq);
memcpy(ar->ap_country_code, DEF_AP_COUNTRY_CODE, 3);
return ar;
}
EXPORT_SYMBOL(ath6kl_core_create);
void ath6kl_core_cleanup(struct ath6kl *ar)
{
ath6kl_hif_power_off(ar);
ath6kl_recovery_cleanup(ar);
destroy_workqueue(ar->ath6kl_wq);
if (ar->htc_target)
ath6kl_htc_cleanup(ar->htc_target);
ath6kl_cookie_cleanup(ar);
ath6kl_cleanup_amsdu_rxbufs(ar);
ath6kl_bmi_cleanup(ar);
ath6kl_debug_cleanup(ar);
kfree(ar->fw_board);
kfree(ar->fw_otp);
vfree(ar->fw);
kfree(ar->fw_patch);
kfree(ar->fw_testscript);
ath6kl_cfg80211_cleanup(ar);
}
EXPORT_SYMBOL(ath6kl_core_cleanup);
void ath6kl_core_destroy(struct ath6kl *ar)
{
ath6kl_cfg80211_destroy(ar);
}
EXPORT_SYMBOL(ath6kl_core_destroy);
MODULE_AUTHOR("Qualcomm Atheros");
MODULE_DESCRIPTION("Core module for AR600x SDIO and USB devices.");
MODULE_LICENSE("Dual BSD/GPL");
Annotation
- Immediate include surface: `core.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/export.h`, `linux/vmalloc.h`, `debug.h`, `hif-ops.h`, `htc-ops.h`.
- Detected declarations: `function ath6kl_core_tx_complete`, `function ath6kl_core_rx_complete`, `function ath6kl_core_init`, `function ath6kl_core_cleanup`, `function ath6kl_core_destroy`, `export ath6kl_core_tx_complete`, `export ath6kl_core_rx_complete`, `export ath6kl_core_init`, `export ath6kl_core_create`, `export ath6kl_core_cleanup`.
- 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.