本文整理汇总了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);
}
示例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);
}
示例3: partition_exit
static void __exit partition_exit(void)
{
remove_proc_entry("partinfo", NULL);
remove_proc_entry("upgrade", NULL);
}
示例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");
}
示例5: rtc_exit
static void __exit rtc_exit(void)
{
remove_proc_entry("driver/rtc", NULL);
misc_deregister(&rtc_dev);
}
示例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);
}
示例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");
}
示例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);
}
示例9: ftape_proc_destroy
void ftape_proc_destroy(void)
{
remove_proc_entry("ftape", &proc_root);
}
示例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);
}
示例11: ikconfig_cleanup
static void __exit ikconfig_cleanup(void)
{
remove_proc_entry("config.gz", NULL);
}
示例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);
}
示例13: svc_proc_unregister
void
svc_proc_unregister(const char *name)
{
remove_proc_entry(name, proc_net_rpc);
}
示例14: fooproc_exit
static void __exit fooproc_exit(void)
{
remove_proc_entry("foobar", NULL);
}
示例15: xfs_cleanup_procfs
void
xfs_cleanup_procfs(void)
{
remove_proc_entry("fs/xfs/stat", NULL);
remove_proc_entry("fs/xfs", NULL);
}