Thread (12 messages) 12 messages, 5 authors, 2020-04-01

Re: clone3: allow creation of time namespace with offset

flat view

From: Arnd Bergmann <arnd@arndb.de>
Date: 2020-03-19 08:17:04
Also in: lkml

On Thu, Mar 19, 2020 at 9:11 AM Adrian Reber [off-list ref] wrote:
With Arnd's idea of only using nanoseconds, timens_offset would then
contain something like this:

struct timens_offset {
        __aligned_s64 monotonic_offset_ns;
        __aligned_s64 boottime_offset_ns;
};

I kind of prefer adding boottime and monotonic directly to struct clone_args

        __aligned_u64 tls;
        __aligned_u64 set_tid;
        __aligned_u64 set_tid_size;
+       __aligned_s64 monotonic_offset_ns;
+       __aligned_s64 boottime_offset_ns;
 };
I would also prefer the second approach using two 64-bit integers
instead of a pointer, as it keeps the interface simpler to implement
and simpler to interpret by other tools.

      Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help