blob: 8f0b5e658d9d6f1ce7923a2b8fd4d026b4651558 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#ifndef _RTEMS_BSDNET_MUTEX_H
#define _RTEMS_BSDNET_MUTEX_H
/* NOTE: mutexes should never be necessary since
* the RTEMS BSD code protects everything with a
* big fat lock
*/
struct mtx {
rtems_id mtx_id;
};
#define MTX_DEF 0 /* default sleeping lock */
#define MTX_RECURSE 4 /* nesting */
#define MTX_NETWORK_LOCK "xxx"
static inline void
mtx_init(struct mtx *m, const char *name, const char *type, int opts)
{
/* Set ID to zero in case they want to submit this mutex
* to callout_init_mtx()
*/
m->mtx_id = 0;
}
static inline int
mtx_initialized(struct mtx *m)
{
return m->mtx_id == 0;
}
static inline void
mtx_lock(struct mtx *m)
{
}
static inline void
mtx_unlock(struct mtx *m)
{
}
static inline void
mtx_destroy(struct mtx *m)
{
}
/* what ? */
#define MA_OWNED 1
#define MA_NOTOWNED 0
static inline void
mtx_assert(struct mtx *m, int what)
{
}
#endif
|