OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 /* 00011 * rx_lwp.h - mutexes and condition variables do not exist for LWP. 00012 */ 00013 00014 #ifndef _RX_LWP_H_ 00015 #define _RX_LWP_H_ 00016 00017 /* KDUMP_KERNEL is defined when kdump includes this header. */ 00018 #ifndef KDUMP_KERNEL 00019 00020 typedef int afs_kmutex_t; 00021 00022 #define CALL_HOLD(call, type) 00023 #define CALL_HOLD_R(call, type) 00024 #define CALL_RELE(call, type) 00025 #define CALL_RELE_R(call, type) 00026 00027 #define MUTEX_DESTROY(a) 00028 #define MUTEX_ENTER(a) 00029 #define MUTEX_TRYENTER(a) 1 00030 #define MUTEX_EXIT(a) 00031 #define MUTEX_INIT(a,b,c,d) 00032 #define MUTEX_ISMINE(a) 00033 #define CV_INIT(a,b,c,d) 00034 #define CV_DESTROY(a) 00035 #define CV_WAIT(cv, l) 00036 #define CV_SIGNAL(cv) 00037 #define CV_BROADCAST(cv) 00038 #define CV_TIMEDWAIT(cv, l, t) 00039 #define osirx_AssertMine(a, b) 00040 00041 #endif /* KERNEL */ 00042 00043 #endif /* _RX_LWP_H_ */