Skip to content

Commit e5aa296

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

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
@@ -32,6 +32,7 @@
3232
#include "slab.c"
3333
#include "spinlock.c"
3434
#include "task.c"
35+
#include "time_namespace.c"
3536
#include "timekeeping.c"
3637
#include "uaccess.c"
3738
#include "vmalloc.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)