Implement scsi_externalize(), again. (This was supposed to be committed in the

last batch of changes but somehow got lost in the shuffle.)
This commit is contained in:
wollman 1994-10-19 20:34:15 +00:00
parent e55b0fa62f
commit c1ffab18a7

View File

@ -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);
}