projects/linux·blob assoc-array-fixes · refs

35 lines · 802 B

1// SPDX-License-Identifier: GPL-2.0
2
3#include <linux/srcu.h>
4
5__rust_helper int rust_helper_init_srcu_struct_with_key(struct srcu_struct *ssp,
6 const char *name,
7 struct lock_class_key *key)
8{
9 return __init_srcu_struct(ssp, name, key);
10}
11
12__rust_helper bool rust_helper_srcu_readers_active(struct srcu_struct *ssp)
13{
14 return srcu_readers_active(ssp);
15}
16
17__rust_helper int rust_helper_srcu_read_lock(struct srcu_struct *ssp)
18{
19 return srcu_read_lock(ssp);
20}
21
22__rust_helper void rust_helper_srcu_read_unlock(struct srcu_struct *ssp, int idx)
23{
24 srcu_read_unlock(ssp, idx);
25}
26
27__rust_helper void rust_helper_srcu_barrier(struct srcu_struct *ssp)
28{
29 srcu_barrier(ssp);
30}
31
32__rust_helper void rust_helper_synchronize_srcu_expedited(struct srcu_struct *ssp)
33{
34 synchronize_srcu_expedited(ssp);
35}