summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-10-19 20:34:15 +0000
committerwollman <wollman@FreeBSD.org>1994-10-19 20:34:15 +0000
commitc1ffab18a7809199c312f383bb5259324c14afb7 (patch)
treec7b814aabd4d951d7f7238e1bf7c5cf5fc8eb87a /sys/scsi
parente55b0fa62fdb3d44ba0a6aa243d83b3d48238880 (diff)
downloadFreeBSD-src-c1ffab18a7809199c312f383bb5259324c14afb7.zip
FreeBSD-src-c1ffab18a7809199c312f383bb5259324c14afb7.tar.gz
Implement scsi_externalize(), again. (This was supposed to be committed in the
last batch of changes but somehow got lost in the shuffle.)
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsiconf.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 05627c1..2a3ee8d 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
- * $Id: scsiconf.c,v 1.9 1994/09/28 20:16:40 se Exp $
+ * $Id: scsiconf.c,v 1.10 1994/10/08 22:26:38 phk Exp $
*/
#include <sys/types.h>
@@ -901,3 +901,14 @@ selectdev(qualifier, type, remov, manu, model, rev)
}
return (bestmatch);
}
+
+int
+scsi_externalize(struct scsi_link *sl, void *userp, size_t *lenp)
+{
+ if(*lenp < sizeof *sl)
+ return ENOMEM;
+
+ *lenp -= sizeof *sl;
+
+ return copyout(sl, userp, sizeof *sl);
+}
OpenPOWER on IntegriCloud