Skip to contentSkip to conversation

Wrong RTDM proc entry prevents xeno_rtdm.ko from being loaded

Xenomai-core Applied Sebastian Smolorz 2 participants 4 messages Oct 12, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

today I discovered a bug after having tried to load the Xenomai RTDM skin. I've attached a patch which should correct the problem.

Sebastian

proc.c renamed from skins/rtdm/proc.c +1 -1
@@ -285,7 +285,7 @@ int __init rtdm_proc_init(void)
 
 
     /* Initialise /proc entries */
-    rtdm_proc_root = create_proc_entry("Xenomai/rtdm", S_IFDIR, NULL);
+    rtdm_proc_root = create_proc_entry("xenomai/rtdm", S_IFDIR, NULL);
     if (!rtdm_proc_root)
         return -EAGAIN;
 
#1 lore raw
Quoted 5 lines · Sebastian Smolorz

Hi,

today I discovered a bug after having tried to load the Xenomai RTDM skin. I've attached a patch which should correct the problem.

Applied, thanks.

Signature · 1 line
Philippe.
#2 lore raw
Quoted 5 lines · Philippe Gerum
Quoted 4 lines · Sebastian Smolorz

Hi,

today I discovered a bug after having tried to load the Xenomai RTDM skin. I've attached a patch which should correct the problem.

... and if we want to have a clean removal of the proc entry at module unload, this next patch is very useful! ;-)

Sebastian

proc.c renamed from skins/rtdm/proc.c +1 -1
@@ -322,7 +322,7 @@ void rtdm_proc_cleanup(void)
     remove_proc_entry("open_fildes", rtdm_proc_root);
     remove_proc_entry("protocol_devices", rtdm_proc_root);
     remove_proc_entry("named_devices", rtdm_proc_root);
-    remove_proc_entry("Xenomai/rtdm", NULL);
+    remove_proc_entry("xenomai/rtdm", NULL);
 }
 
 #endif /* CONFIG_PROC_FS */
#3 lore raw
Quoted 5 lines · Sebastian Smolorz
Quoted 2 lines · Philippe Gerum

Sebastian Smolorz wrote:

Quoted 9 lines
Quoted 4 lines
Quoted 4 lines

Hi,

today I discovered a bug after having tried to load the Xenomai RTDM skin. I've attached a patch which should correct the problem.

... and if we want to have a clean removal of the proc entry at module unload, this next patch is very useful! ;-)

Oh, well...

Signature · 1 line
Philippe.