drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c- Extension
.c- Size
- 12396 bytes
- Lines
- 398
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
../wifi.h../core.h../pci.h../base.h../rtl8192d/reg.h../rtl8192d/def.h../rtl8192d/dm_common.h../rtl8192d/hw_common.h../rtl8192d/phy_common.h../rtl8192d/trx_common.hphy.hdm.hhw.hsw.htrx.hled.hlinux/module.h
Detected Declarations
function rtl92d_init_aspm_varsfunction rtl92d_init_sw_varsfunction rtl92d_deinit_sw_varsfunction rtl92de_module_initfunction rtl92de_module_exitmodule init rtl92de_module_init
Annotated Snippet
static struct pci_driver rtl92de_driver = {
.name = KBUILD_MODNAME,
.id_table = rtl92de_pci_ids,
.probe = rtl_pci_probe,
.remove = rtl_pci_disconnect,
.driver.pm = &rtlwifi_pm_ops,
};
/* add global spin lock to solve the problem that
* Dul mac register operation on the same time */
DEFINE_SPINLOCK(globalmutex_power);
DEFINE_SPINLOCK(globalmutex_for_fwdownload);
DEFINE_SPINLOCK(globalmutex_for_power_and_efuse);
static int __init rtl92de_module_init(void)
{
int ret = 0;
ret = pci_register_driver(&rtl92de_driver);
if (ret)
WARN_ONCE(true, "rtl8192de: No device found\n");
return ret;
}
static void __exit rtl92de_module_exit(void)
{
pci_unregister_driver(&rtl92de_driver);
}
module_init(rtl92de_module_init);
module_exit(rtl92de_module_exit);
Annotation
- Immediate include surface: `../wifi.h`, `../core.h`, `../pci.h`, `../base.h`, `../rtl8192d/reg.h`, `../rtl8192d/def.h`, `../rtl8192d/dm_common.h`, `../rtl8192d/hw_common.h`.
- Detected declarations: `function rtl92d_init_aspm_vars`, `function rtl92d_init_sw_vars`, `function rtl92d_deinit_sw_vars`, `function rtl92de_module_init`, `function rtl92de_module_exit`, `module init rtl92de_module_init`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
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.