1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/export.h>
4 #include <linux/refcount.h>
6 refcount_t
rust_helper_REFCOUNT_INIT(int n
)
8 return (refcount_t
)REFCOUNT_INIT(n
);
11 void rust_helper_refcount_inc(refcount_t
*r
)
16 bool rust_helper_refcount_dec_and_test(refcount_t
*r
)
18 return refcount_dec_and_test(r
);