RTEMS 6.1-rc4
Loading...
Searching...
No Matches
workqueue.h
1#ifndef __LINUX_WORKQUEUE_H__
2#define __LINUX_WORKQUEUE_H__
3
4#include <rtems/chain.h>
5#include <linux/mutex.h>
6
8
9#define queue_delayed_work(workqueue, delayed_work, delay_ms) ({ \
10 jffs2_queue_delayed_work(delayed_work, delay_ms); \
11 0; \
12})
13
14#define INIT_DELAYED_WORK(delayed_work, delayed_workqueue_callback) ({ \
15 (delayed_work)->callback = delayed_workqueue_callback; \
16})
17
18#define msecs_to_jiffies(a) (a)
19
20typedef void (*work_callback_t)(struct work_struct *work);
22 struct work_struct work;
23 struct mutex dw_mutex;
24 volatile bool pending;
25 volatile uint64_t execution_time;
26 work_callback_t callback;
27 /* Superblock provided for locking */
28 struct super_block *sb;
29};
30
31#define to_delayed_work(work) RTEMS_CONTAINER_OF(work, struct delayed_work, work)
32void jffs2_queue_delayed_work(struct delayed_work *work, int delay_ms);
33
34#endif /* __LINUX_WORKQUEUE_H__ */
This header file provides the Chains API.
This structure represents a chain node.
Definition: chain.h:78
Definition: workqueue.h:21
Definition: mutex.h:4
Definition: os-rtems.h:101
Definition: workqueue.h:7