Last change
on this file was 772, checked in by David Azarewicz, 4 months ago |
Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.
|
-
Property svn:eol-style
set to
native
|
File size:
561 bytes
|
Rev | Line | |
---|
[305] | 1 | /* $Id: rwsem.h,v 1.1.1.1 2003/07/02 13:57:00 eleph Exp $ */
|
---|
| 2 |
|
---|
[298] | 3 | #ifndef _LINUX_RWSEM_H
|
---|
| 4 | #define _LINUX_RWSEM_H
|
---|
| 5 |
|
---|
[679] | 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)
|
---|
[772] | 16 | static inline void downgrade_write(struct rw_semaphore *sem) {}
|
---|
[679] | 17 |
|
---|
| 18 | static inline int down_write_trylock(struct rw_semaphore *sem) {return 0;}
|
---|
[298] | 19 | #endif /* _LINUX_RWSEM_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.