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 } 36