From: Philippe Gerum <rpm@xenomai.org>
To: Thomas Necker <thomas.necker@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] xntbase_get_jiffies in user space?
Date: Wed, 31 Oct 2007 11:18:14 +0100 [thread overview]
Message-ID: <47285666.4080108@domain.hid> (raw)
In-Reply-To: <E5E9C6CC7DC8844A8DA7A9EFE7B5350E0172B790@domain.hid>
Thomas Necker wrote:
> A few weeks ago I was asking about a global variable available that just
> counts the system ticks (for pSOS skin) and that could be read by the
> application. Philippe suggested xntbase_get_jiffies for that purpose.
> Now it seems to me that this function can only be called in kernel
> space. Is that correct? And if so, is there a way to get this
> information in user space? Basically I want to get rid of kernel code in
> this context completely if possible.
>
The pSOS skin supports tm_get() which converts the current count of
jiffies to calendar date and time, but this may not be handy for your
calculations.
The other option would be to extend this skin with a Xenomai-specific
syscall returning this value, in a similar way than tm_getm(), which
returns the TSC converted to nanoseconds.
> Thomas
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
next prev parent reply other threads:[~2007-10-31 10:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 9:37 [Xenomai-help] xntbase_get_jiffies in user space? Thomas Necker
2007-10-31 10:18 ` Philippe Gerum [this message]
2007-10-31 10:26 ` Philippe Gerum
2007-10-31 14:33 ` Thomas Necker
2007-10-31 14:42 ` Philippe Gerum
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=47285666.4080108@domain.hid \
--to=rpm@xenomai.org \
--cc=thomas.necker@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.