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 int rust_helper_srcu_read_lock(struct srcu_struct *ssp) 13 { 14 return srcu_read_lock(ssp); 15 } 16 17 __rust_helper void rust_helper_srcu_read_unlock(struct srcu_struct *ssp, int idx) 18 { 19 srcu_read_unlock(ssp, idx); 20 } 21 22 __rust_helper void rust_helper_srcu_barrier(struct srcu_struct *ssp) 23 { 24 srcu_barrier(ssp); 25 } 26 27 __rust_helper void rust_helper_synchronize_srcu_expedited(struct srcu_struct *ssp) 28 { 29 synchronize_srcu_expedited(ssp); 30 } 31