mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 16:32:25 +01:00
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:
parent
50edb6dded
commit
33d2aba4dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3721
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user