Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 16 lines 437 B view raw
1// SPDX-License-Identifier: GPL-2.0 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}