aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nmdm/nmdm.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-08-08 19:55:32 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-08-08 19:55:32 +0000
commit6a113b3de785c1852adc7ec1bc80413c4e26c8f7 (patch)
treed655c312aefcf63bff80cd1977af84d2c685fd16 /sys/dev/nmdm/nmdm.c
parent6eb1d21f148591174f3720af272ab142685b4473 (diff)
downloadsrc-6a113b3de785c1852adc7ec1bc80413c4e26c8f7.tar.gz
src-6a113b3de785c1852adc7ec1bc80413c4e26c8f7.zip
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
Notes
Notes: svn path=/head/; revision=148868
Diffstat (limited to 'sys/dev/nmdm/nmdm.c')
-rw-r--r--sys/dev/nmdm/nmdm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c
index e61a05f5fa0f..1c118d2960f6 100644
--- a/sys/dev/nmdm/nmdm.c
+++ b/sys/dev/nmdm/nmdm.c
@@ -104,7 +104,8 @@ static struct clonedevs *nmdmclones;
static TAILQ_HEAD(,nm_softc) nmdmhead = TAILQ_HEAD_INITIALIZER(nmdmhead);
static void
-nmdm_clone(void *arg, char *name, int nameen, struct cdev **dev)
+nmdm_clone(void *arg, struct ucred *cred, char *name, int nameen,
+ struct cdev **dev)
{
int i, unit;
char *p;