mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
scsi: introduce scsi_req_new
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
fc4f0754c7
commit
43a2b33957
6 changed files with 10 additions and 5 deletions
|
@ -146,6 +146,11 @@ SCSIRequest *scsi_req_alloc(size_t size, SCSIDevice *d, uint32_t tag, uint32_t l
|
|||
return req;
|
||||
}
|
||||
|
||||
SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun)
|
||||
{
|
||||
return d->info->alloc_req(d, tag, lun);
|
||||
}
|
||||
|
||||
int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf)
|
||||
{
|
||||
int32_t rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue