diff options
author | ariff <ariff@FreeBSD.org> | 2007-06-14 11:10:21 +0000 |
---|---|---|
committer | ariff <ariff@FreeBSD.org> | 2007-06-14 11:10:21 +0000 |
commit | 14575cd8bb52c826f5ac679e0170d0aa7fe27fad (patch) | |
tree | aef137e8770b6bed36f086b59816ff7044001da0 /sys/dev/sound/clone.h | |
parent | 31192e1f32dd2a6a2aa637b10d4074545c87cb1c (diff) | |
download | FreeBSD-src-14575cd8bb52c826f5ac679e0170d0aa7fe27fad.zip FreeBSD-src-14575cd8bb52c826f5ac679e0170d0aa7fe27fad.tar.gz |
- Add option to allow sleeping malloc(9).
- Cleanup locking assertions that aren't needed anymore.
Diffstat (limited to 'sys/dev/sound/clone.h')
-rw-r--r-- | sys/dev/sound/clone.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/sound/clone.h b/sys/dev/sound/clone.h index 4f671d8..18149ba 100644 --- a/sys/dev/sound/clone.h +++ b/sys/dev/sound/clone.h @@ -56,6 +56,8 @@ struct snd_clone; * handler has been expired. * SND_CLONE_GC_REVOKE - Revoke clone invocation status which has been * expired instead of removing and freeing it. + * SND_CLONE_WAITOK - malloc() is allowed to sleep while allocating + * clone entry. */ #define SND_CLONE_ENABLE 0x00000001 #define SND_CLONE_GC_ENABLE 0x00000002 @@ -63,6 +65,7 @@ struct snd_clone; #define SND_CLONE_GC_LASTREF 0x00000008 #define SND_CLONE_GC_EXPIRED 0x00000010 #define SND_CLONE_GC_REVOKE 0x00000020 +#define SND_CLONE_WAITOK 0x80000000 #define SND_CLONE_GC_MASK (SND_CLONE_GC_ENABLE | \ SND_CLONE_GC_UNREF | \ @@ -70,7 +73,8 @@ struct snd_clone; SND_CLONE_GC_EXPIRED | \ SND_CLONE_GC_REVOKE) -#define SND_CLONE_MASK (SND_CLONE_ENABLE | SND_CLONE_GC_MASK) +#define SND_CLONE_MASK (SND_CLONE_ENABLE | SND_CLONE_GC_MASK | \ + SND_CLONE_WAITOK) /* * Runtime clone device flags @@ -96,11 +100,7 @@ struct snd_clone; void snd_timestamp(struct timespec *); -#ifdef SND_DIAGNOSTIC -struct snd_clone *snd_clone_create(struct mtx *, int, int, int, uint32_t); -#else struct snd_clone *snd_clone_create(int, int, int, uint32_t); -#endif int snd_clone_busy(struct snd_clone *); int snd_clone_enable(struct snd_clone *); int snd_clone_disable(struct snd_clone *); |