summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/dsp.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-08-08 19:55:32 +0000
committerrwatson <rwatson@FreeBSD.org>2005-08-08 19:55:32 +0000
commitdaa1c89f450d2c308009c125db1d28bbd9c044fa (patch)
treed655c312aefcf63bff80cd1977af84d2c685fd16 /sys/dev/sound/pcm/dsp.c
parent540e708ef59e78a3e053a16463d855a75422f2bc (diff)
downloadFreeBSD-src-daa1c89f450d2c308009c125db1d28bbd9c044fa.zip
FreeBSD-src-daa1c89f450d2c308009c125db1d28bbd9c044fa.tar.gz
Merge the dev_clone and dev_clone_cred event handlers into a single
event handler, dev_clone, which accepts a credential argument. Implementors of the event can ignore it if they're not interested, and most do. This avoids having multiple event handler types and fall-back/precedence logic in devfs. This changes the kernel API for /dev cloning, and may affect third party packages containg cloning kernel modules. Requested by: phk MFC after: 3 days
Diffstat (limited to 'sys/dev/sound/pcm/dsp.c')
-rw-r--r--sys/dev/sound/pcm/dsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index c57b59f..9c34f65 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -1130,7 +1130,8 @@ dsp_mmap(struct cdev *i_dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
* if xN.i isn't busy, return its dev_t
*/
static void
-dsp_clone(void *arg, char *name, int namelen, struct cdev **dev)
+dsp_clone(void *arg, struct ucred *cred, char *name, int namelen,
+ struct cdev **dev)
{
struct cdev *pdev;
struct snddev_info *pcm_dev;
OpenPOWER on IntegriCloud