};
#ifdef CONFIG_PROC_FS
-extern struct proc_dir_entry proc_irda;
-struct proc_dir_entry proc_ircomm = {
- 0, 6, "ircomm",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, NULL,
- &ircomm_proc_read,
-};
+extern struct proc_dir_entry *proc_irda;
#endif
static void (*state[])( struct ircomm_cb *self, IRCOMM_EVENT event,
*/
#ifdef CONFIG_PROC_FS
- proc_register( &proc_irda, &proc_ircomm);
+ create_proc_entry("ircomm", 0, proc_irda)->get_info = ircomm_proc_read;
#endif /* CONFIG_PROC_FS */
}
#ifdef CONFIG_PROC_FS
- proc_unregister( &proc_irda, proc_ircomm.low_ino);
+ remove_proc_entry("ircomm", proc_irda);
#endif /* CONFIG_PROC_FS */
}
#endif /* MODULE */
static int irlan_proc_read(char *buf, char **start, off_t offset, int len,
int unused);
-extern struct proc_dir_entry proc_irda;
-
-struct proc_dir_entry proc_irlan = {
- 0, 5, "irlan",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, NULL,
- &irlan_proc_read,
-};
-#endif /* CONFIG_PROC_FS */
+extern struct proc_dir_entry *proc_irda;
+#endif
void irlan_watchdog_timer_expired(unsigned long data)
{
return -ENOMEM;
}
#ifdef CONFIG_PROC_FS
- proc_register(&proc_irda, &proc_irlan);
+ create_proc_entry("irlan", 0, proc_irda)->get_info = irlan_proc_read;
#endif /* CONFIG_PROC_FS */
DEBUG(4, __FUNCTION__ "()\n");
irlmp_unregister_service(skey);
#ifdef CONFIG_PROC_FS
- proc_unregister(&proc_irda, proc_irlan.low_ino);
+ remove_proc_entry("irlan", proc_irda);
#endif /* CONFIG_PROC_FS */
/*
* Delete hashbin and close all irlan client instances in it
return len;
}
-struct proc_dir_entry proc_irlpt_client = {
- 0, 12, "irlpt_client",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, NULL /* ops -- default to array */,
- &irlpt_client_proc_read /* get_info */,
-};
-
-extern struct proc_dir_entry proc_irda;
+extern struct proc_dir_entry *proc_irda;
#endif /* CONFIG_PROC_FS */
NULL);
#ifdef CONFIG_PROC_FS
- proc_register( &proc_irda, &proc_irlpt_client);
+ create_proc_entry("irlpt_client", 0, proc_irda)->get_info
+ = irlpt_client_proc_read;
#endif /* CONFIG_PROC_FS */
DEBUG( irlpt_client_debug, __FUNCTION__ " -->\n");
hashbin_delete( irlpt_clients, (FREE_FUNC) irlpt_client_close);
#ifdef CONFIG_PROC_FS
- proc_unregister( &proc_irda, proc_irlpt_client.low_ino);
+ remove_proc_entry("irlpt_client", proc_irda);
#endif
DEBUG( irlpt_client_debug, __FUNCTION__ " -->\n");
return len;
}
-extern struct proc_dir_entry proc_irda;
-
-struct proc_dir_entry proc_irlpt_server = {
- 0, 12, "irlpt_server",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, NULL /* ops -- default to array */,
- &irlpt_server_proc_read /* get_info */,
-};
+extern struct proc_dir_entry *proc_irda;
#endif /* CONFIG_PROC_FS */
register_irlpt_server();
#ifdef CONFIG_PROC_FS
- proc_register( &proc_irda, &proc_irlpt_server);
+ create_proc_entry("irlpt_server", 0, proc_irda)->get_info
+ = irlpt_server_proc_read;
#endif /* CONFIG_PROC_FS */
DEBUG( irlpt_server_debug, __FUNCTION__ " -->\n");
kfree(irlpt_server);
#ifdef CONFIG_PROC_FS
- proc_unregister( &proc_irda, proc_irlpt_server.low_ino);
+ remove_proc_entry("irlpt_server", proc_irda);
#endif
DEBUG( irlpt_server_debug, __FUNCTION__ " -->\n");
*/
void irda_proc_register(void) {
int i;
- proc_irda = proc_create_entry("net/irda", S_IFDIR, NULL);
+ proc_irda = create_proc_entry("net/irda", S_IFDIR, NULL);
#ifdef MODULE
proc_irda->fill_inode = &irda_proc_modcount;
#endif /* MODULE */
for (i=0;i<IRDA_ENTRIES_NUM;i++)
- proc_create_entry(dir[i].name,0,proc_irda)->get_info=dir[i].fn;
+ create_proc_entry(dir[i].name,0,proc_irda)->get_info=dir[i].fn;
}
/*
void irda_proc_unregister(void) {
int i;
for (i=0;i<IRDA_ENTRIES_NUM;i++)
- proc_remove_entry(dir[i].name, proc_irda);
- proc_remove_entry("net/irda", NULL);
+ remove_proc_entry(dir[i].name, proc_irda);
+ remove_proc_entry("net/irda", NULL);
}