Skip to content

Commit 493ec37

Browse files
committed
rust: Add time_namespace helpers
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 0549a3e commit 493ec37

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

rust/helpers/helpers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "slab.c"
3535
#include "spinlock.c"
3636
#include "task.c"
37+
#include "time_namespace.c"
3738
#include "timekeeping.c"
3839
#include "uaccess.c"
3940
#include "wait.c"

rust/helpers/time_namespace.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
3+
#include <linux/time_namespace.h>
4+
5+
void rust_helper_timens_add_monotonic(struct timespec64 *ts) {
6+
timens_add_monotonic(ts);
7+
}

0 commit comments

Comments
 (0)