brintos

brintos / linux-shallow public Read only

0
0
Text · 433 B · f59427a Raw
16 lines · c
1// SPDX-License-Identifier: GPL-2.02 3#include <linux/export.h>4#include <linux/workqueue.h>5 6void 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