Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 39845764a0ca01a89dca4ff5b4e9d896ee410054 19 lines 339 B view raw
1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/export.h> 4#include <linux/refcount.h> 5 6refcount_t rust_helper_REFCOUNT_INIT(int n) 7{ 8 return (refcount_t)REFCOUNT_INIT(n); 9} 10 11void rust_helper_refcount_inc(refcount_t *r) 12{ 13 refcount_inc(r); 14} 15 16bool rust_helper_refcount_dec_and_test(refcount_t *r) 17{ 18 return refcount_dec_and_test(r); 19}