All of lore.kernel.org
 help / color / mirror / Atom feed
From: valdis.kletnieks@vt.edu (valdis.kletnieks at vt.edu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Per container uptime?
Date: Thu, 13 Apr 2017 12:00:59 -0400	[thread overview]
Message-ID: <10133.1492099259@turing-police.cc.vt.edu> (raw)
In-Reply-To: <20170413143416.GB5209@sith>

On Thu, 13 Apr 2017 16:34:17 +0200, Fran?ois said:
> Do you think it makes sense at all?

The bigger question is whether there's stuff that runs in a container that
wants the system uptime, which would break under this API change.

> Any hint on how to get started on that?

It's trivial - note the uptime at container creation, stash the value
in the container struct, and subtract when an uptime request happens.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170413/7f4ed2c1/attachment.bin 

      reply	other threads:[~2017-04-13 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 14:34 Per container uptime? François
2017-04-13 16:00 ` valdis.kletnieks at vt.edu [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=10133.1492099259@turing-police.cc.vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=kernelnewbies@lists.kernelnewbies.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.