mutex.c 304 B

123456789101112131415
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/export.h>
  3. #include <linux/mutex.h>
  4. void rust_helper_mutex_lock(struct mutex *lock)
  5. {
  6. mutex_lock(lock);
  7. }
  8. void rust_helper___mutex_init(struct mutex *mutex, const char *name,
  9. struct lock_class_key *key)
  10. {
  11. __mutex_init(mutex, name, key);
  12. }