]> Git Repo - J-linux.git/blob - rust/helpers/refcount.c
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / rust / helpers / refcount.c
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include <linux/refcount.h>
4
5 refcount_t rust_helper_REFCOUNT_INIT(int n)
6 {
7         return (refcount_t)REFCOUNT_INIT(n);
8 }
9
10 void rust_helper_refcount_inc(refcount_t *r)
11 {
12         refcount_inc(r);
13 }
14
15 bool rust_helper_refcount_dec_and_test(refcount_t *r)
16 {
17         return refcount_dec_and_test(r);
18 }
This page took 0.026635 seconds and 4 git commands to generate.