numam-spdk/include/spdk
Pawel Wodkowski f30f0c76f1 scsi: refactor usage of iov from spdk_scsi_task
This patch is preparation for fixing alloc_len overrun in SENSE 6/10 and
READCAP 6/10. To simplify code forbid usage of iov outside of
scsi/task.c.

This also drop SPDK_SCSI_TASK_ALLOC_BUFFER flag that obfuscate code. As
a replacement assume that if field alloc_len is non zero it mean that
iov.buffer is internally allocated. Functions
spdk_scsi_task_free_data(), spdk_scsi_task_set_data() and
spdk_scsi_task_alloc_data() manage this field.

Change-Id: Ife357a5bc36121f93a4c5d259b9a5a01559e7708
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
2016-11-09 10:19:53 -07:00
..
assert.h nvme: convert transport type to an enum 2016-11-07 10:42:18 -07:00
barrier.h doc: add Doxygen file marker to all public headers 2016-05-04 11:17:17 -07:00
bdev.h bdev: move spdk_bdev_fn_table into bdev_module.h 2016-11-09 09:59:39 -07:00
bit_array.h util: add bit array data structure 2016-09-15 15:47:56 -07:00
conf.h conf: Add configuration file iteration functions 2016-05-13 09:51:37 -07:00
copy_engine.h bdev, copy: move all I/O paths to use I/O channels 2016-09-26 14:02:07 -07:00
endian.h scsi: Flesh out the public header file 2016-08-03 09:47:28 -07:00
env.h env: add wrapper to call function without thread affinity (#60) 2016-11-07 10:32:16 -07:00
event.h app: add spdk_app_start_shutdown() 2016-11-07 09:59:59 -07:00
fd.h Rename and move fd related helper functions to fd.c. 2016-09-14 10:51:25 -07:00
gpt_spec.h Add GPT (GUID partition table) spec header 2016-08-24 09:41:05 -07:00
io_channel.h util: add stdbool.h include to io_channel.h 2016-09-30 15:30:25 -07:00
ioat_spec.h ioat_spec.h: rename xor to avoid C++ keyword collision 2016-09-21 09:37:43 -07:00
ioat.h env: Move pci.c from util to env 2016-10-05 11:53:24 -07:00
iscsi_spec.h iscsi: split spec definitions into iscsi_spec.h 2016-08-08 15:53:57 -07:00
json.h json: add spdk_json_write_[u]int64() 2016-11-02 09:10:54 -07:00
jsonrpc.h jsonrpc: add JSON-RPC 2.0 library 2016-05-23 10:28:58 -07:00
likely.h Add likely/unlikely branch prediction annotations 2016-09-16 15:20:35 -07:00
log.h spdk: tweak tracedump 2016-10-05 09:40:21 -07:00
mmio.h doc: add Doxygen file marker to all public headers 2016-05-04 11:17:17 -07:00
net.h net: include stdint.h for uint*_t types 2016-10-03 08:41:37 -07:00
nvme_intel.h spdk: Add Intel specific log page. 2016-05-05 13:39:14 +08:00
nvme_spec.h nvme: Change the deallocate interface to generic dsm 2016-10-04 14:36:09 -07:00
nvme.h nvme: return virtual address in SGL callback 2016-11-09 08:57:40 -07:00
nvmf_spec.h nvmf: add Doxygen title to spec header 2016-08-15 16:07:26 -07:00
nvmf.h nvmf: only save PCI address in direct ctrlr data 2016-11-01 09:40:36 -07:00
pci_ids.h nvme: add quirk to delay checking device readiness (#56) 2016-10-28 11:26:31 -07:00
queue_extras.h Break out queue.h code pulled from FreeBSD into a separate file. 2015-09-25 12:45:04 -07:00
queue.h Add extern "C" wrapper to all public headers 2016-02-12 07:52:35 -07:00
rpc.h rpc: Add an RPC subsystem 2016-06-22 15:45:50 -07:00
scsi_spec.h scsi: translate nvme error to scsi error (#54) 2016-10-28 13:06:45 -07:00
scsi.h scsi: refactor usage of iov from spdk_scsi_task 2016-11-09 10:19:53 -07:00
string.h scsi: move spdk_strcpy_pad() into util/string.c 2016-08-22 08:58:07 -07:00
trace.h trace: hard-code lcore history array size 2016-07-22 12:50:44 -07:00