RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
libfs
src
jffs2
include
linux
workqueue.h
1
#ifndef __LINUX_WORKQUEUE_H__
2
#define __LINUX_WORKQUEUE_H__
3
4
#include <
rtems/chain.h
>
5
#include <linux/mutex.h>
6
7
struct
work_struct
{ rtems_chain_node node; };
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
20
typedef
void (*work_callback_t)(
struct
work_struct
*work);
21
struct
delayed_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)
32
void
jffs2_queue_delayed_work(
struct
delayed_work
*work,
int
delay_ms);
33
34
#endif
/* __LINUX_WORKQUEUE_H__ */
chain.h
This header file provides the Chains API.
delayed_work
Definition
workqueue.h:21
mutex
Definition
mutex.h:4
super_block
Definition
os-rtems.h:101
work_struct
Definition
workqueue.h:7
Generated by
1.18.0