Skip to content

Commit f5fd366

Browse files
hoshinolinajannau
authored andcommitted
rust: Add time_namespace helpers
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent ea932e8 commit f5fd366

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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)