/home/hillier_g/checkout/most4linux/most-kernel/rwsem-debug.c

00001 /*
00002  *  Copyright(c) Siemens AG, Muenchen, Germany, 2005, 2006, 2007
00003  *                           Bernhard Walle <bernhard.walle@gmx.de>
00004  *                           Gernot Hillier <gernot.hillier@siemens.com>
00005  *
00006  * ----------------------------------------------------------------------------
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License version 2 as 
00009  * published by the Free Software Foundation;
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  * ----------------------------------------------------------------------------
00020  */
00021 #include <linux/rwsem.h>
00022 
00023 /* ------------------------------------------------------------------------- */
00024 void init_rwsem_orig(struct rw_semaphore *sem)
00025 {
00026     init_rwsem(sem);
00027 }
00028 
00029 /* ------------------------------------------------------------------------- */
00030 void down_read_orig(struct rw_semaphore *sem)
00031 {
00032     down_read(sem);
00033 }
00034 
00035 /* --------------------------------------------------------------------------*/
00036 int down_read_trylock_orig(struct rw_semaphore *sem)
00037 {
00038     return down_read_trylock(sem);
00039 }
00040 
00041 /* ------------------------------------------------------------------------- */
00042 void up_read_orig(struct rw_semaphore *sem)
00043 {
00044     up_read(sem);
00045 }
00046 
00047 /* ------------------------------------------------------------------------- */
00048 void down_write_orig(struct rw_semaphore *sem)
00049 {
00050     down_write(sem);
00051 }
00052 
00053 /* ------------------------------------------------------------------------- */
00054 int down_write_trylock_orig(struct rw_semaphore *sem)
00055 {
00056     return down_write_trylock(sem);
00057 }
00058 
00059 /* ------------------------------------------------------------------------- */
00060 void up_write_orig(struct rw_semaphore *sem)
00061 {
00062     up_write(sem);
00063 }
00064 
00065 /* ------------------------------------------------------------------------- */
00066 void downgrade_wrte_orig(struct rw_semaphore *sem)
00067 {
00068     downgrade_write(sem);
00069 }
00070 

Generated on Fri Mar 9 14:48:58 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0