1 // SPDX-License-Identifier: GPL-2.0 2 3 #include <linux/export.h> 4 #include <linux/workqueue.h> 5 6 void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func, 7 bool onstack, const char *name, 8 struct lock_class_key *key) 9 { 10 __init_work(work, onstack); 11 work->data = (atomic_long_t)WORK_DATA_INIT(); 12 lockdep_init_map(&work->lockdep_map, name, key, 0); 13 INIT_LIST_HEAD(&work->entry); 14 work->func = func; 15 } 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.