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