Re: [PATCH 3/7] Functions to fetch POSIX dynamic clock object

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 22:51, Erez Geva wrote: > Add kernel functions to fetch a pointer to a POSIX dynamic clock > using a user file description dynamic clock ID. And how is that supposed to work. What are the lifetime rules? > +struct posix_clock *posix_clock_get_clock(clockid_t id) > +{ > +

[PATCH 3/7] Functions to fetch POSIX dynamic clock object

2020-10-01 Thread Erez Geva
Add kernel functions to fetch a pointer to a POSIX dynamic clock using a user file description dynamic clock ID. Signed-off-by: Erez Geva --- include/linux/posix-clock.h | 39 +++ kernel/time/posix-clock.c | 76 + 2 files changed, 115 inserti