xarray.c 518 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/xarray.h>
  3. __rust_helper int rust_helper_xa_err(void *entry)
  4. {
  5. return xa_err(entry);
  6. }
  7. __rust_helper void rust_helper_xa_init_flags(struct xarray *xa, gfp_t flags)
  8. {
  9. return xa_init_flags(xa, flags);
  10. }
  11. __rust_helper int rust_helper_xa_trylock(struct xarray *xa)
  12. {
  13. return xa_trylock(xa);
  14. }
  15. __rust_helper void rust_helper_xa_lock(struct xarray *xa)
  16. {
  17. return xa_lock(xa);
  18. }
  19. __rust_helper void rust_helper_xa_unlock(struct xarray *xa)
  20. {
  21. return xa_unlock(xa);
  22. }