]> Git Repo - J-linux.git/blob - rust/helpers/workqueue.c
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / rust / helpers / workqueue.c
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include <linux/workqueue.h>
4
5 void rust_helper_init_work_with_key(struct work_struct *work, work_func_t func,
6                                     bool onstack, const char *name,
7                                     struct lock_class_key *key)
8 {
9         __init_work(work, onstack);
10         work->data = (atomic_long_t)WORK_DATA_INIT();
11         lockdep_init_map(&work->lockdep_map, name, key, 0);
12         INIT_LIST_HEAD(&work->entry);
13         work->func = func;
14 }
This page took 0.026548 seconds and 4 git commands to generate.