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.

Dependency Surface

Detected Declarations

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

Implementation Notes