source: GPL/trunk/include/linux/rwsem.h@ 772

Last change on this file since 772 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
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)
16static inline void downgrade_write(struct rw_semaphore *sem) {}
17
18static 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.