summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1994-10-19 20:34:15 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1994-10-19 20:34:15 +0000
commit33d2aba4dcd1ed02210f5d6c3988cb0a081a2472 (patch)
treec7b814aabd4d951d7f7238e1bf7c5cf5fc8eb87a
parent50edb6ddede937ddeff2a27627d13be9af7add14 (diff)
Notes
-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 05627c1cd5fd..2a3ee8d3b575 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);
+}