Last change
on this file since 695 was 695, checked in by David Azarewicz, 4 years ago |
Merge changes from next branch.
|
-
Property svn:eol-style
set to
native
|
File size:
524 bytes
|
Line | |
---|
1 | /* $Id: rwsem.h,v 1.1.1.1 2003/07/02 13:57:00 eleph Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _LINUX_RWSEM_H
|
---|
4 | #define _LINUX_RWSEM_H
|
---|
5 |
|
---|
6 | #include <linux/err.h>
|
---|
7 |
|
---|
8 | /* rw_semaphore - replaced with mutex */
|
---|
9 | #define rw_semaphore semaphore
|
---|
10 | #define init_rwsem(x) init_MUTEX(x)
|
---|
11 | #define DECLARE_RWSEM(x) DECLARE_MUTEX(x)
|
---|
12 | #define down_read(x) down(x)
|
---|
13 | #define down_write(x) down(x)
|
---|
14 | #define up_read(x) up(x)
|
---|
15 | #define up_write(x) up(x)
|
---|
16 | #define downgrade_write(a)
|
---|
17 |
|
---|
18 | static inline int down_write_trylock(struct rw_semaphore *sem) {return 0;}
|
---|
19 | #endif /* _LINUX_RWSEM_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.