All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Andreas Vogt <A_C_V@web.de>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] interrupt programm hang up the computer
Date: Tue, 27 Nov 2007 11:27:33 +0100	[thread overview]
Message-ID: <474BF115.1050309@domain.hid> (raw)
In-Reply-To: <1820393698@domain.hid>

Andreas Vogt wrote:
> Hello,
> 
> I try to implement an interrupt but I get always the error message -38.

-ENOSYS. Function not implemented.

 What does this messages mean?
> And when i delete in the section...
> 
> if (err > 0) {int_count++;}
> 	 else {
> 			printf("interrupt_task_2 error = %i\n", err);
> 		}
> 		rt_intr_enable (&intr_desc); 
>        
> 	   }
> 
>  ... the printf command the program hang up.
>

Infinite loop you created yourself by not testing the status returned
from rt_intr_wait().

What about testing the return code from rt_intr_create() too?

> In my config the XENO_OPT_NATIVE_INTR is not set. Cause this any Problem?
> __________________

Yes. This is why you get -ENOSYS.

_____________________________________________________
> Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
> kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.


      reply	other threads:[~2007-11-27 10:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27 10:12 [Xenomai-help] interrupt programm hang up the computer Andreas Vogt
2007-11-27 10:27 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=474BF115.1050309@domain.hid \
    --to=rpm@xenomai.org \
    --cc=A_C_V@web.de \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.