All of lore.kernel.org
 help / color / mirror / Atom feed
From: <mario_molitor@web.de>
To: 'Jan Kiszka' <jan.kiszka@siemens.com>, xenomai@xenomai.org
Subject: AW: use of posix function clock_gettime
Date: Wed, 10 Jul 2019 22:42:09 +0200	[thread overview]
Message-ID: <000101d5375f$f221cd60$d6656820$@web.de> (raw)
In-Reply-To: <3f76a1b5-24eb-6efb-d8d2-3de10554c7ed@siemens.com>

> First of all, all in-kernel APIs have been deprecated and removed in favor of RTDM driver APIs. However, RTDM does not expose this clock directly. You can only do rtdm_clock_read (realtime) or rtdm_clock_read_monotonic().

This was also my recognising after reading the code and the information was not really new. Anyway in meantime I have found a workaround/ solution for our problem.

>We could add a host_realtime API to RTDM if there is a good use case. And that would include a reason why the timestamp adjustment (monotonic -> host-realtime) cannot be done in the userspace application that consumes the driver data.

>From my point of view make this always sense if a measurement value needs an accurate Timestamp by the creating. The other applications which could need this are fieldbus application. 
Our measurement system gets her measurement value in the Kernel-Space in a Xenomia-IRQ and in this case was the old Functionality very smart. 
A new Functionality RTDM_ host_realtime would be close this gap and would by also make the RTDM Clock-service completely.

Mario

HBK




      reply	other threads:[~2019-07-10 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08 13:02 use of posix function clock_gettime Mario Molitor
2019-07-08 13:34 ` Jan Kiszka
2019-07-10 20:42   ` mario_molitor [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='000101d5375f$f221cd60$d6656820$@web.de' \
    --to=mario_molitor@web.de \
    --cc=jan.kiszka@siemens.com \
    --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.