当前位置: 首页>>代码示例>>C++>>正文


C++ remove_proc_entry函数代码示例

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


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

示例1: myproc_exit

static void __exit myproc_exit(void){
	remove_proc_entry("pool",mydir);
	remove_proc_entry("mydir",NULL);
}
开发者ID:anshulmgupta,项目名称:Linux-Kernel-Arch,代码行数:4,代码来源:hellow_proc.c

示例2: scsi_exit_procfs

/**
 * scsi_exit_procfs - Remove scsi/scsi and scsi from procfs
 */
void scsi_exit_procfs(void)
{
	remove_proc_entry("scsi/scsi", NULL);
	remove_proc_entry("scsi", NULL);
}
开发者ID:325116067,项目名称:semc-qsd8x50,代码行数:8,代码来源:scsi_proc.c

示例3: partition_exit

static void __exit partition_exit(void)
{
    remove_proc_entry("partinfo", NULL);
    remove_proc_entry("upgrade", NULL);
}
开发者ID:vvmhz54,项目名称:ALPS.L1.MP6.V2.19_CENON6580_WE_1_L_KERNEL,代码行数:5,代码来源:partition.c

示例4: BCMLOG_InitConfig

/**
 *	Initialize logging configuration.  Schedules a work thread to
 *	load the configuration file once the file system is readable.
 **/
void BCMLOG_InitConfig(void *h)
{
	int value;
	struct device * dev = (struct device *)h;
	/*
	 *      disable all AP logging (CP logging is
	 *      handled by CP) [MobC00126731]
	 */
	memset(&g_config, 0x00, sizeof(g_config));

	/*
	 *      set default configuration
	 */
	SetConfigDefaults();

	/*
	 *      create the procfs entry
	 */
	g_proc_dir_entry =
	    create_proc_entry(BCMLOG_CONFIG_PROC_FILE,
			      S_IRWXU | S_IRWXG | S_IRWXO, NULL);

	if (g_proc_dir_entry == NULL) {
		remove_proc_entry(BCMLOG_CONFIG_PROC_FILE, NULL);
	}

	else {
		g_proc_dir_entry->read_proc = proc_read;
		g_proc_dir_entry->write_proc = proc_write;
	}

	strncpy(g_config.file_base, BCMLOG_DEFAULT_FILE_BASE, MAX_STR_NAME);
	strncpy(g_config.uart_dev, BCMLOG_DEFAULT_UART_DEV, MAX_STR_NAME);
	strncpy(g_config.acm_dev, BCMLOG_DEFAULT_ACM_DEV, MAX_STR_NAME);

	value = device_create_file(dev, &dev_attr_log);
	if (value < 0)
		pr_err("BCMLOG Init failed to create bcmlog log attribute\n");
	value = device_create_file(dev, &dev_attr_log_lock);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog log_lock attribute\n");
	value = device_create_file(dev, &dev_attr_cp_crash);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog cp crash log attribute\n");
	value = device_create_file(dev, &dev_attr_cp_crash_lock);
	if (value < 0)
		pr_err
	("BCMLOG Init failed to create bcmlog cp crash log lock attribute\n");
	value = device_create_file(dev, &dev_attr_ap_crash);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog ap crash log attribute\n");
	value = device_create_file(dev, &dev_attr_ap_crash_lock);
	if (value < 0)
		pr_err
	("BCMLOG Init failed to create bcmlog ap crash log lock attribute\n");
	value = device_create_file(dev, &dev_attr_file_base);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog file_base attribute\n");
	value = device_create_file(dev, &dev_attr_file_max);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog file max attribute\n");
	value = device_create_file(dev, &dev_attr_uart_dev);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog uart_dev attribute\n");
	value = device_create_file(dev, &dev_attr_acm_dev);
	if (value < 0)
		pr_err
	    ("BCMLOG Init failed to create bcmlog acm_dev attribute\n");
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:79,代码来源:config.c

示例5: rtc_exit

static void __exit rtc_exit(void)
{
	remove_proc_entry("driver/rtc", NULL);
	misc_deregister(&rtc_dev);

}
开发者ID:BackupTheBerlios,项目名称:wl530g-svn,代码行数:6,代码来源:mips_rtc.c

示例6: scull_remove_proc

static void scull_remove_proc(void)
{
    /* no problem if it was not registered */
    remove_proc_entry("scullmem", NULL /* parent dir */);
    remove_proc_entry("scullseq", NULL);
}
开发者ID:4get,项目名称:ldd3_examples,代码行数:6,代码来源:main.c

示例7: unload_tester_4

void unload_tester_4(void) {
   remove_proc_entry("tester_4", root_dir);
   printk(KERN_INFO "tester_4: Module unloaded successfully\n");
}
开发者ID:musgravejw,项目名称:os,代码行数:4,代码来源:tester_4.c

示例8: jit_exit

static void __exit jit_exit(void){
	remove_proc_entry("jit_busy",NULL);
	remove_proc_entry("jit_sched",NULL);
	remove_proc_entry("jit_queue",NULL);
	remove_proc_entry("jit_schedto",NULL);
}
开发者ID:zengweitotty,项目名称:jit,代码行数:6,代码来源:jit.c

示例9: ftape_proc_destroy

void ftape_proc_destroy(void)
{
	remove_proc_entry("ftape", &proc_root);
}
开发者ID:JBTech,项目名称:ralink_rt5350,代码行数:4,代码来源:ftape-proc.c

示例10: bt_power_exit

static void __exit bt_power_exit(void)
{
  remove_proc_entry("bt_power", NULL);
  remove_proc_entry("bt_stat", NULL);
  remove_proc_entry("bt_status", NULL);
}
开发者ID:Atrix-Dev-Team,项目名称:kernel-MB860,代码行数:6,代码来源:bt_power.c

示例11: ikconfig_cleanup

static void __exit ikconfig_cleanup(void)
{
	remove_proc_entry("config.gz", NULL);
}
开发者ID:flwh,项目名称:Alcatel_OT_985_kernel,代码行数:4,代码来源:configs.c

示例12: sdhci_drv_exit

static void __exit sdhci_drv_exit(void)
{
	remove_proc_entry(PROC_GLOBAL_PARENT_DIR, NULL);
	platform_driver_unregister(&sdhci_pltfm_driver);
}
开发者ID:CVlaspoel,项目名称:VSMC-i9105p,代码行数:5,代码来源:sdhci-pltfm-kona.c

示例13: svc_proc_unregister

void
svc_proc_unregister(const char *name)
{
	remove_proc_entry(name, proc_net_rpc);
}
开发者ID:JBTech,项目名称:ralink_rt5350,代码行数:5,代码来源:stats.c

示例14: fooproc_exit

static void __exit fooproc_exit(void)
{
	remove_proc_entry("foobar", NULL);
}
开发者ID:Stolas,项目名称:kernelfun,代码行数:4,代码来源:proc_foo.c

示例15: xfs_cleanup_procfs

void
xfs_cleanup_procfs(void)
{
	remove_proc_entry("fs/xfs/stat", NULL);
	remove_proc_entry("fs/xfs", NULL);
}
开发者ID:LouZiffer,项目名称:m900_kernel_cupcake-SDX,代码行数:6,代码来源:xfs_stats.c


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