Skip to content

Commit

Permalink
rust: Add time_namespace helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Asahi Lina <[email protected]>
  • Loading branch information
asahilina committed Nov 3, 2024
1 parent 0549a3e commit 493ec37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/helpers/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "slab.c"
#include "spinlock.c"
#include "task.c"
#include "time_namespace.c"
#include "timekeeping.c"
#include "uaccess.c"
#include "wait.c"
Expand Down
7 changes: 7 additions & 0 deletions rust/helpers/time_namespace.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-2.0

#include <linux/time_namespace.h>

void rust_helper_timens_add_monotonic(struct timespec64 *ts) {
timens_add_monotonic(ts);
}

0 comments on commit 493ec37

Please sign in to comment.