Module: xenomai-3
Branch: next
Commit: 411605d4fac651577d932f51f7a978d92f09d074
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=411605d4fac651577d932f51f7a978d92f09d074

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Oct  4 10:17:52 2015 +0200

cobalt/posix/memory: use fixed minors for UMM devices

---

 kernel/cobalt/posix/memory.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/posix/memory.c b/kernel/cobalt/posix/memory.c
index 9e4d093..5304272 100644
--- a/kernel/cobalt/posix/memory.c
+++ b/kernel/cobalt/posix/memory.c
@@ -210,9 +210,8 @@ static struct rtdm_driver umm_driver = {
                                                  RTDM_CLASS_MEMORY,
                                                  RTDM_SUBCLASS_GENERIC,
                                                  0),
-       .device_flags   =       RTDM_NAMED_DEVICE,
+       .device_flags   =       RTDM_NAMED_DEVICE|RTDM_FIXED_MINOR,
        .device_count   =       2,
-       .context_size   =       0,
        .ops = {
                .ioctl_rt               =       umm_ioctl_rt,
                .ioctl_nrt              =       umm_ioctl_nrt,
@@ -225,10 +224,12 @@ static struct rtdm_device umm_devices[] = {
        [ UMM_PRIVATE ] = {
                .driver = &umm_driver,
                .label = COBALT_MEMDEV_PRIVATE,
+               .minor = UMM_PRIVATE,
        },
        [ UMM_SHARED ] = {
                .driver = &umm_driver,
                .label = COBALT_MEMDEV_SHARED,
+               .minor = UMM_SHARED,
        },
 };
 
@@ -239,7 +240,6 @@ static struct rtdm_driver sysmem_driver = {
                                                  0),
        .device_flags   =       RTDM_NAMED_DEVICE,
        .device_count   =       1,
-       .context_size   =       0,
        .ops = {
                .open           =       sysmem_open,
                .ioctl_rt       =       sysmem_ioctl_rt,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to