Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/rust/helpers/bitops.c
29266 views
1
// SPDX-License-Identifier: GPL-2.0
2
3
#include <linux/bitops.h>
4
5
void rust_helper___set_bit(unsigned long nr, unsigned long *addr)
6
{
7
__set_bit(nr, addr);
8
}
9
10
void rust_helper___clear_bit(unsigned long nr, unsigned long *addr)
11
{
12
__clear_bit(nr, addr);
13
}
14
15
void rust_helper_set_bit(unsigned long nr, volatile unsigned long *addr)
16
{
17
set_bit(nr, addr);
18
}
19
20
void rust_helper_clear_bit(unsigned long nr, volatile unsigned long *addr)
21
{
22
clear_bit(nr, addr);
23
}
24
25