| 1 | |
| 2 |
|
| 3 | #include <linux/workqueue.h>
|
| 4 |
|
| 5 | __rust_helper void rust_helper_init_work_with_key(struct work_struct *work,
|
| 6 | work_func_t func,
|
| 7 | bool onstack,
|
| 8 | const char *name,
|
| 9 | struct lock_class_key *key)
|
| 10 | {
|
| 11 | __init_work(work, onstack);
|
| 12 | work->data = (atomic_long_t)WORK_DATA_INIT();
|
| 13 | lockdep_init_map(&work->lockdep_map, name, key, 0);
|
| 14 | INIT_LIST_HEAD(&work->entry);
|
| 15 | work->func = func;
|
| 16 | }
|