diff options
author | Christian Brauner <brauner@kernel.org> | 2025-09-12 14:52:46 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-09-19 15:26:15 +0300 |
commit | b36c823b9a4be5b0c8e38c3fd60cade7d41c216c (patch) | |
tree | cc5be2a27f35dcbc1454e5fc3677420c8be46c73 /include/linux/time_namespace.h | |
parent | 488acdcec8e24377506934a95e0ba21619073e8f (diff) | |
download | linux-b36c823b9a4be5b0c8e38c3fd60cade7d41c216c.tar.xz |
time: support ns lookup
Support the generic ns lookup infrastructure to support file handles for
namespaces.
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/time_namespace.h')
-rw-r--r-- | include/linux/time_namespace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/time_namespace.h b/include/linux/time_namespace.h index bb2c52f4fc94..7f6af7a9771e 100644 --- a/include/linux/time_namespace.h +++ b/include/linux/time_namespace.h @@ -33,6 +33,7 @@ struct time_namespace { extern struct time_namespace init_time_ns; #ifdef CONFIG_TIME_NS +void __init time_ns_init(void); extern int vdso_join_timens(struct task_struct *task, struct time_namespace *ns); extern void timens_commit(struct task_struct *tsk, struct time_namespace *ns); @@ -108,6 +109,10 @@ static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) } #else +static inline void __init time_ns_init(void) +{ +} + static inline int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) { |