All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: kunming yang <yangkunming99@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] CLOCK_HOST_REALTIME
Date: Tue, 16 Jul 2013 16:29:32 +0200	[thread overview]
Message-ID: <51E558CC.1060107@siemens.com> (raw)
In-Reply-To: <CAMDpcBFBhM6yevqd002zqkmmYM1ER-roFLmjZNfOOu1=DETjmQ@mail.gmail.com>

On 2013-07-16 15:06, kunming yang wrote:
> Hello,
> 
> I failed to read host time by using do_clock_host_realtime, so I tried
> clock_gettime(CLOCK_HOST_REALTIME) by executing "clocktest -C 2", but I got:
> 
> == Tested clock: 2 (<unknown>)
> CPU      ToD offset [us] ToD drift [us/s]      warps max delta [us]
> --- -------------------- ---------------- ---------- --------------
>   0                  0.0            0.000          0            0.0
> clock_gettime failed for clock id 2
> 
> Anyone knows what's the problem?

As we know, the answer to all questions is 42, also to this one:

#define CLOCK_HOST_REALTIME 42

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


      reply	other threads:[~2013-07-16 14:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 13:06 [Xenomai] CLOCK_HOST_REALTIME kunming yang
2013-07-16 14:29 ` Jan Kiszka [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=51E558CC.1060107@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=xenomai@xenomai.org \
    --cc=yangkunming99@gmail.com \
    /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.