Module: xenomai-abe
Branch: analogy
Commit: e926ae12cae65dde8309d6dc37873857f12dc26d
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=e926ae12cae65dde8309d6dc37873857f12dc26d

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Wed Apr 28 00:33:14 2010 +0200

analogy: add rtdm_rt_capable() calls in read / write syscall handlers

---

 ksrc/drivers/analogy/rtdm_interface.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ksrc/drivers/analogy/rtdm_interface.c 
b/ksrc/drivers/analogy/rtdm_interface.c
index 2973b59..00c2d51 100644
--- a/ksrc/drivers/analogy/rtdm_interface.c
+++ b/ksrc/drivers/analogy/rtdm_interface.c
@@ -152,6 +152,9 @@ ssize_t a4l_rt_read(struct rtdm_dev_context * context,
 {
        a4l_cxt_t cxt;
 
+       if (rtdm_rt_capable(user_info) != 0)
+               return -ENOSYS;
+       
        a4l_init_cxt(context, user_info, &cxt);
        a4l_set_dev(&cxt);
 
@@ -170,6 +173,9 @@ ssize_t a4l_rt_write(struct rtdm_dev_context * context,
 {
        a4l_cxt_t cxt;
 
+       if (rtdm_rt_capable(user_info) != 0)
+               return -ENOSYS;
+
        a4l_init_cxt(context, user_info, &cxt);
        a4l_set_dev(&cxt);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to