mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
19 lines
313 B
C
19 lines
313 B
C
![]() |
// SPDX-License-Identifier: GPL-2.0
|
||
|
|
||
|
#include <linux/refcount.h>
|
||
|
|
||
|
refcount_t rust_helper_REFCOUNT_INIT(int n)
|
||
|
{
|
||
|
return (refcount_t)REFCOUNT_INIT(n);
|
||
|
}
|
||
|
|
||
|
void rust_helper_refcount_inc(refcount_t *r)
|
||
|
{
|
||
|
refcount_inc(r);
|
||
|
}
|
||
|
|
||
|
bool rust_helper_refcount_dec_and_test(refcount_t *r)
|
||
|
{
|
||
|
return refcount_dec_and_test(r);
|
||
|
}
|