binder.c 631 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2025 Google LLC.
  4. */
  5. #include <linux/list_lru.h>
  6. #include <linux/task_work.h>
  7. __rust_helper unsigned long rust_helper_list_lru_count(struct list_lru *lru)
  8. {
  9. return list_lru_count(lru);
  10. }
  11. __rust_helper unsigned long rust_helper_list_lru_walk(struct list_lru *lru,
  12. list_lru_walk_cb isolate,
  13. void *cb_arg,
  14. unsigned long nr_to_walk)
  15. {
  16. return list_lru_walk(lru, isolate, cb_arg, nr_to_walk);
  17. }
  18. __rust_helper void rust_helper_init_task_work(struct callback_head *twork,
  19. task_work_func_t func)
  20. {
  21. init_task_work(twork, func);
  22. }