File: mutex_compat.h

package info (click to toggle)
alsa-driver 1.0.13-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,108 kB
  • ctags: 50,477
  • sloc: ansic: 319,881; sh: 32,930; makefile: 2,015; python: 1,527; perl: 1,316; xml: 896; awk: 66
file content (14 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __LINUX_MUTEX_H
#define __LINUX_MUTEX_H

#include <asm/semaphore.h>

#define mutex semaphore
#define DEFINE_MUTEX(x)		DECLARE_MUTEX(x)
#define mutex_init(x)		init_MUTEX(x)
#define mutex_destroy(x)
#define mutex_lock(x)		down(x)
#define mutex_lock_interruptible(x) down_interruptible(x)
#define mutex_unlock(x)		up(x)

#endif