Files

29 lines
529 B
C
Raw Permalink Normal View History

2024-08-15 10:30:26 +00:00
// SPDX-License-Identifier: GPL-2.0
#include <linux/refcount.h>
__rust_helper refcount_t rust_helper_REFCOUNT_INIT(int n)
2024-08-15 10:30:26 +00:00
{
return (refcount_t)REFCOUNT_INIT(n);
}
__rust_helper void rust_helper_refcount_set(refcount_t *r, int n)
2025-09-04 21:41:37 -07:00
{
refcount_set(r, n);
}
__rust_helper void rust_helper_refcount_inc(refcount_t *r)
2024-08-15 10:30:26 +00:00
{
refcount_inc(r);
}
__rust_helper void rust_helper_refcount_dec(refcount_t *r)
2025-09-04 21:41:37 -07:00
{
refcount_dec(r);
}
__rust_helper bool rust_helper_refcount_dec_and_test(refcount_t *r)
2024-08-15 10:30:26 +00:00
{
return refcount_dec_and_test(r);
}