All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Guillaume Gaudonville <guillaume.gaudonville@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Can't create more than one watchdog under	vxworks skin
Date: Tue, 18 Sep 2007 20:08:50 +0200	[thread overview]
Message-ID: <1190138931.15100.22.camel@domain.hid> (raw)
In-Reply-To: <353969d40709180729s54307285i983eb7cc24c90642@domain.hid>

On Tue, 2007-09-18 at 16:29 +0200, Guillaume Gaudonville wrote:
> Hi,
> 
> I use Xenomai since a few time. I have to port an application
> running under VxWorks on Linux. This application uses a lot of
> watchdog
> to delay job it has to do.
> 
> When I use the function wdCreate under the VxWorks skin (in User
> Space), 
> I am not able to create more than 1 watchdog. I watched to the
> function implementation in 
> user space and I saw that when I call wdCreate, a task is created with
> the name: wdserver.
> 
> When I call wdCreate a second time, it returns me 0 because he can't
> create 
> another task with the same name (wdServer). But my watchdog seems to
> be created in
> kernel space because I can see it
> in /proc/xenomai/registry/vxworks/watchdog.
> 
> Is it a mistake? If not, what is the reason for this behaviour? 
> 

The current implementation is definitely silly. It should create one
server for all outstanding watchdogs.

> I have modified the user space library to create a task of name
> wdserver<WDOG_ID>,
> and it seems to work fine. Is it correct?
> 
> I think a better solution would be to have only one task to manage all
> the wathdog but I don't 
> have a lot of time to implement it. Maybe in a few weeks.
> 
> Thanks for your help.
> 
> -- 
> Guillaume Gaudonville
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




  reply	other threads:[~2007-09-18 18:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 14:29 [Xenomai-help] Can't create more than one watchdog under vxworks skin Guillaume Gaudonville
2007-09-18 18:08 ` Philippe Gerum [this message]
2007-10-02 16:18   ` Philippe Gerum
2007-10-02 16:32     ` Philippe Gerum
2007-10-02 18:27       ` Guillaume Gaudonville

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=1190138931.15100.22.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=guillaume.gaudonville@domain.hid \
    --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.