• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ pci_unregister_driver函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中pci_unregister_driver函数的典型用法代码示例。如果您正苦于以下问题:C++ pci_unregister_driver函数的具体用法?C++ pci_unregister_driver怎么用?C++ pci_unregister_driver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了pci_unregister_driver函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: xhci_unregister_pci

void xhci_unregister_pci(void)
{
	pci_unregister_driver(&xhci_pci_driver);
}
开发者ID:daltenty,项目名称:kernel-ubuntu.trusty-vgt,代码行数:4,代码来源:xhci-pci.c


示例2: maxiradio_radio_exit

static void __exit maxiradio_radio_exit(void)
{
	pci_unregister_driver(&maxiradio_driver);
}
开发者ID:BackupTheBerlios,项目名称:arp2-svn,代码行数:4,代码来源:radio-maxiradio.c


示例3: pci_stub_exit

static void __exit pci_stub_exit(void)
{
	pci_unregister_driver(&stub_driver);
}
开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:4,代码来源:pci-stub.c


示例4: ehci_hcd_pci_cleanup

static void __exit ehci_hcd_pci_cleanup(void)
{
	pci_unregister_driver(&ehci_pci_driver);
}
开发者ID:ena30,项目名称:snake-os,代码行数:4,代码来源:ehci-pci.c


示例5: alsa_card_emu10k1_exit

static void __exit alsa_card_emu10k1_exit(void)
{
	pci_unregister_driver(&driver);
}
开发者ID:nos1609,项目名称:Chrono_Kernel-1,代码行数:4,代码来源:emu10k1.c


示例6: optidma_exit

static void __exit optidma_exit(void)
{
	pci_unregister_driver(&optidma_pci_driver);
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:4,代码来源:pata_optidma.c


示例7: r82600_exit

static void __exit r82600_exit(void)
{
	pci_unregister_driver(&r82600_driver);
}
开发者ID:Vincentxiaojie,项目名称:xpenology,代码行数:4,代码来源:r82600_edac.c


示例8: svia_exit

static void __exit svia_exit(void)
{
	pci_unregister_driver(&svia_pci_driver);
}
开发者ID:Epirex,项目名称:Chrono_Kernel-1,代码行数:4,代码来源:sata_via.c


示例9: cs5520_exit

static void __exit cs5520_exit(void)
{
	pci_unregister_driver(&cs5520_pci_driver);
}
开发者ID:mikeberkelaar,项目名称:grhardened,代码行数:4,代码来源:pata_cs5520.c


示例10: Speedfax_cleanup

static void __exit
Speedfax_cleanup(void)
{
	pci_unregister_driver(&sfaxpci_driver);
}
开发者ID:0xroot,项目名称:Blackphone-BP1-Kernel,代码行数:5,代码来源:speedfax.c


示例11: vgdrvLinuxModInit


//.........这里部分代码省略.........
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    g_fLoggerCreated = true;
#endif

    /*
     * Locate and initialize the PCI device.
     */
    rc = pci_register_driver(&g_PciDriver);
    if (rc >= 0 && g_pPciDev)
    {
        /*
         * Register the interrupt service routine for it.
         */
        rc = vgdrvLinuxInitISR();
        if (rc >= 0)
        {
            /*
             * Call the common device extension initializer.
             */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) && defined(RT_ARCH_X86)
            VBOXOSTYPE enmOSType = VBOXOSTYPE_Linux26;
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) && defined(RT_ARCH_AMD64)
            VBOXOSTYPE enmOSType = VBOXOSTYPE_Linux26_x64;
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) && defined(RT_ARCH_X86)
            VBOXOSTYPE enmOSType = VBOXOSTYPE_Linux24;
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) && defined(RT_ARCH_AMD64)
            VBOXOSTYPE enmOSType = VBOXOSTYPE_Linux24_x64;
#else
# warning "huh? which arch + version is this?"
            VBOXOSTYPE enmOsType = VBOXOSTYPE_Linux;
#endif
            rc = VGDrvCommonInitDevExt(&g_DevExt,
                                       g_IOPortBase,
                                       g_pvMMIOBase,
                                       g_cbMMIO,
                                       enmOSType,
                                       VMMDEV_EVENT_MOUSE_POSITION_CHANGED);
            if (RT_SUCCESS(rc))
            {
                /*
                 * Create the kernel session for this driver.
                 */
                rc = VGDrvCommonCreateKernelSession(&g_DevExt, &g_pKernelSession);
                if (RT_SUCCESS(rc))
                {
                    /*
                     * Create the kernel input device.
                     */
#ifdef VBOXGUEST_WITH_INPUT_DRIVER
                    rc = vgdrvLinuxCreateInputDevice();
                    if (rc >= 0)
                    {
#endif
                        /*
                         * Finally, create the device nodes.
                         */
                        rc = vgdrvLinuxInitDeviceNodes();
                        if (rc >= 0)
                        {
                            /* some useful information for the user but don't show this on the console */
                            LogRel((DEVICE_NAME ": misc device minor %d, IRQ %d, I/O port %RTiop, MMIO at %RHp (size 0x%x)\n",
                                    g_MiscDevice.minor, g_pPciDev->irq, g_IOPortBase, g_MMIOPhysAddr, g_cbMMIO));
                            printk(KERN_DEBUG DEVICE_NAME ": Successfully loaded version "
                                   VBOX_VERSION_STRING " (interface " RT_XSTR(VMMDEV_VERSION) ")\n");
                            return rc;
                        }

                        /* bail out */
#ifdef VBOXGUEST_WITH_INPUT_DRIVER
                        vgdrvLinuxTermInputDevice();
                    }
                    else
                    {
                        LogRel((DEVICE_NAME ": vboxguestCreateInputDevice failed with rc=%Rrc\n", rc));
                        rc = RTErrConvertFromErrno(rc);
                    }
#endif
                    VGDrvCommonCloseSession(&g_DevExt, g_pKernelSession);
                }
                VGDrvCommonDeleteDevExt(&g_DevExt);
            }
            else
            {
                LogRel((DEVICE_NAME ": VGDrvCommonInitDevExt failed with rc=%Rrc\n", rc));
                rc = RTErrConvertFromErrno(rc);
            }
            vgdrvLinuxTermISR();
        }
    }
    else
    {
        LogRel((DEVICE_NAME ": PCI device not found, probably running on physical hardware.\n"));
        rc = -ENODEV;
    }
    pci_unregister_driver(&g_PciDriver);
    RTLogDestroy(RTLogRelSetDefaultInstance(NULL));
    RTLogDestroy(RTLogSetDefaultInstance(NULL));
    RTR0Term();
    return rc;
}
开发者ID:miguelinux,项目名称:vboxguest-linux-modules,代码行数:101,代码来源:VBoxGuest-linux.c


示例12: marvell_init_one

static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *id)
{
	static const struct ata_port_info info = {
		.flags		= ATA_FLAG_SLAVE_POSS,

		.pio_mask	= 0x1f,
		.mwdma_mask	= 0x07,
		.udma_mask 	= ATA_UDMA5,

		.port_ops	= &marvell_ops,
	};
	static const struct ata_port_info info_sata = {
		/* Slave possible as its magically mapped not real */
		.flags		= ATA_FLAG_SLAVE_POSS,

		.pio_mask	= 0x1f,
		.mwdma_mask	= 0x07,
		.udma_mask 	= ATA_UDMA6,

		.port_ops	= &marvell_ops,
	};
	const struct ata_port_info *ppi[] = { &info, &info_sata };

	if (pdev->device == 0x6101)
		ppi[1] = &ata_dummy_port_info;

#if defined(CONFIG_AHCI) || defined(CONFIG_AHCI_MODULE)
	if (!marvell_pata_active(pdev)) {
		printk(KERN_INFO DRV_NAME ": PATA port not active, deferring to AHCI driver.\n");
		return -ENODEV;
	}
#endif
	return ata_pci_sff_init_one(pdev, ppi, &marvell_sht, NULL);
}

static const struct pci_device_id marvell_pci_tbl[] = {
	{ PCI_DEVICE(0x11AB, 0x6101), },
	{ PCI_DEVICE(0x11AB, 0x6121), },
	{ PCI_DEVICE(0x11AB, 0x6123), },
	{ PCI_DEVICE(0x11AB, 0x6145), },
	{ }	/* terminate list */
};

static struct pci_driver marvell_pci_driver = {
	.name			= DRV_NAME,
	.id_table		= marvell_pci_tbl,
	.probe			= marvell_init_one,
	.remove			= ata_pci_remove_one,
#ifdef CONFIG_PM
	.suspend		= ata_pci_device_suspend,
	.resume			= ata_pci_device_resume,
#endif
};

static int __init marvell_init(void)
{
	return pci_register_driver(&marvell_pci_driver);
}

static void __exit marvell_exit(void)
{
	pci_unregister_driver(&marvell_pci_driver);
}

module_init(marvell_init);
module_exit(marvell_exit);

MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for Marvell ATA in legacy mode");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, marvell_pci_tbl);
MODULE_VERSION(DRV_VERSION);
开发者ID:LouZiffer,项目名称:m900_kernel_cupcake-SDX,代码行数:72,代码来源:pata_marvell.c


示例13: alsa_card_mixart_exit

static void __exit alsa_card_mixart_exit(void)
{
    pci_unregister_driver(&driver);
}
开发者ID:274914765,项目名称:C,代码行数:4,代码来源:mixart.c


示例14: ath_pci_exit

void ath_pci_exit(void)
{
	pci_unregister_driver(&ath_pci_driver);
}
开发者ID:abnarain,项目名称:mac80211-darkbranch,代码行数:4,代码来源:pci.c


示例15: alsa_ad1889_fini

static void __exit
alsa_ad1889_fini(void)
{
	pci_unregister_driver(&ad1889_pci_driver);
}
开发者ID:mecke,项目名称:linux-2.6,代码行数:5,代码来源:ad1889.c


示例16: alsa_card_trident_exit

static void __exit alsa_card_trident_exit(void)
{
	pci_unregister_driver(&driver);
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:4,代码来源:trident.c


示例17: aec62xx_ide_exit

static void __exit aec62xx_ide_exit(void)
{
	pci_unregister_driver(&aec62xx_pci_driver);
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:4,代码来源:aec62xx.c


示例18: iwl_pci_unregister_driver

void iwl_pci_unregister_driver(void)
{
	pci_unregister_driver(&iwl_pci_driver);
}
开发者ID:agnostino,项目名称:wireless_RTT,代码行数:4,代码来源:iwl-pci.c


示例19: pcie_portdrv_exit

static void __exit pcie_portdrv_exit(void) 
{
	pci_unregister_driver(&pcie_portdriver);
	pcie_port_bus_unregister();
}
开发者ID:3sOx,项目名称:asuswrt-merlin,代码行数:5,代码来源:portdrv_pci.c


示例20: orinoco_nortel_exit

static void __exit orinoco_nortel_exit(void)
{
	pci_unregister_driver(&orinoco_nortel_driver);
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:4,代码来源:orinoco_nortel.c



注:本文中的pci_unregister_driver函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ pci_word_test_and_set_mask函数代码示例发布时间:2022-05-30
下一篇:
C++ pci_unmap_rom函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap