diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-08-08 19:55:32 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-08-08 19:55:32 +0000 |
commit | daa1c89f450d2c308009c125db1d28bbd9c044fa (patch) | |
tree | d655c312aefcf63bff80cd1977af84d2c685fd16 /sys/cam/scsi | |
parent | 540e708ef59e78a3e053a16463d855a75422f2bc (diff) | |
download | FreeBSD-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/cam/scsi')
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c index 0b7caac..1e3d893 100644 --- a/sys/cam/scsi/scsi_target.c +++ b/sys/cam/scsi/scsi_target.c @@ -141,8 +141,8 @@ static void targfreeccb(struct targ_softc *softc, union ccb *ccb); static struct targ_cmd_descr * targgetdescr(struct targ_softc *softc); static periph_init_t targinit; -static void targclone(void *arg, char *name, int namelen, - struct cdev **dev); +static void targclone(void *arg, struct ucred *cred, char *name, + int namelen, struct cdev **dev); static void targasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg); static void abort_all_pending(struct targ_softc *softc); @@ -1025,7 +1025,8 @@ targinit(void) } static void -targclone(void *arg, char *name, int namelen, struct cdev **dev) +targclone(void *arg, struct ucred *cred, char *name, int namelen, + struct cdev **dev) { int u; |