25 #ifndef DOCA_DEVEMU_VFS_IO_H_
26 #define DOCA_DEVEMU_VFS_IO_H_
67 struct doca_pe *progress_engine,
struct doca_devemu_vfs_io **io);
126 void *req_user_data,
union doca_data event_user_data);
165 struct doca_devemu_vfs_notification_req *req,
166 void *req_user_data,
union doca_data event_user_data);
#define DOCA_EXPERIMENTAL
To set a Symbol (or specifically a function) as experimental.
DOCA_EXPERIMENTAL void doca_devemu_vfs_req_complete(struct doca_devemu_vfs_req *req, uint32_t len)
Complete the Virtio FS request. The Request ownership (including the associated datain,...
DOCA_EXPERIMENTAL uint16_t doca_devemu_vfs_req_get_src_domain_id(struct doca_devemu_vfs_req *req)
Get the source domain identifier for the request. DOCA journal recovery guarantees to (re)play all th...
DOCA_EXPERIMENTAL uint32_t doca_devemu_vfs_req_get_datain_list_len(struct doca_devemu_vfs_req *req)
Get the number of elements in the original doca buffer linked list associated with the device-readabl...
DOCA_EXPERIMENTAL uint32_t doca_devemu_vfs_req_get_dataout_list_len(struct doca_devemu_vfs_req *req)
Get the number of elements in the original doca buffer linked list associated with the device-writabl...
DOCA_EXPERIMENTAL struct doca_buf * doca_devemu_vfs_req_get_datain(struct doca_devemu_vfs_req *req)
Get the doca buffer associated with the device-readable part of the Virtio FS request.
void(* doca_devemu_vfs_io_event_vfs_req_notice_handler_cb_t)(struct doca_devemu_vfs_req *req, void *req_user_data, union doca_data event_user_data)
Function to be executed on vfs_req_notice event occurrence. The Ownership of the doca_devemu_vfs_req ...
DOCA_EXPERIMENTAL uint32_t doca_devemu_vfs_req_get_dataout_data_len(struct doca_devemu_vfs_req *req)
Get the total data length of the original doca buffer linked list associated with the device-writable...
DOCA_EXPERIMENTAL void doca_devemu_vfs_notification_req_complete(struct doca_devemu_vfs_notification_req *req, uint32_t len)
Complete the Virtio FS notification_request. The Request ownership (including the associated dataout ...
DOCA_EXPERIMENTAL struct doca_ctx * doca_devemu_vfs_io_as_ctx(struct doca_devemu_vfs_io *io)
Convert DOCA Virtio FS device IO context instance into DOCA context.
DOCA_EXPERIMENTAL struct doca_devemu_virtio_io * doca_devemu_vfs_io_as_virtio_io(struct doca_devemu_vfs_io *io)
Convert DOCA Virtio FS device IO context instance into DOCA Virtio device IO context.
DOCA_EXPERIMENTAL doca_error_t doca_devemu_vfs_io_event_vfs_req_notice_register(struct doca_devemu_vfs_io *io, doca_devemu_vfs_io_event_vfs_req_notice_handler_cb_t handler, union doca_data user_data)
Register to Virtio FS request notifications.
DOCA_EXPERIMENTAL doca_error_t doca_devemu_vfs_io_destroy(struct doca_devemu_vfs_io *io)
Free a Virtio FS device IO context.
DOCA_EXPERIMENTAL uint32_t doca_devemu_vfs_notification_req_get_dataout_data_len(struct doca_devemu_vfs_notification_req *req)
Get the total data length of the original doca buffer linked list associated with the device-writable...
DOCA_EXPERIMENTAL doca_error_t doca_devemu_vfs_io_create(struct doca_devemu_vfs_dev *vfs_dev, struct doca_pe *progress_engine, struct doca_devemu_vfs_io **io)
Allocate Virtio FS device IO context for a DOCA Virtio FS device.
DOCA_EXPERIMENTAL struct doca_buf * doca_devemu_vfs_req_get_dataout(struct doca_devemu_vfs_req *req)
Get the doca buffer associated with the device-writable part of the Virtio FS request.
DOCA_EXPERIMENTAL uint64_t doca_devemu_vfs_req_get_id(struct doca_devemu_vfs_req *req)
Get the request identifier. DOCA journal recovery guarantees to (re)play all the commands that were i...
DOCA_EXPERIMENTAL uint64_t doca_devemu_vfs_notification_req_get_id(struct doca_devemu_vfs_notification_req *req)
Get the notification request identifier.
DOCA_EXPERIMENTAL uint16_t doca_devemu_vfs_notification_req_get_src_domain_id(struct doca_devemu_vfs_notification_req *req)
Get the source domain identifier for the notification request.
DOCA_EXPERIMENTAL struct doca_buf * doca_devemu_vfs_notification_req_get_dataout(struct doca_devemu_vfs_notification_req *req)
Get the doca buffer associated with the device-writable part of the Virtio FS notification request.
DOCA_EXPERIMENTAL uint32_t doca_devemu_vfs_req_get_datain_data_len(struct doca_devemu_vfs_req *req)
Get the total data length of the original doca buffer linked list associated with the device-readable...
DOCA_EXPERIMENTAL doca_error_t doca_devemu_vfs_io_event_vfs_notification_req_notice_register(struct doca_devemu_vfs_io *io, doca_devemu_vfs_io_event_vfs_notification_req_notice_handler_cb_t handler, union doca_data user_data)
Register to Virtio FS notification_request notifications.
DOCA_EXPERIMENTAL uint32_t doca_devemu_vfs_notification_req_get_dataout_list_len(struct doca_devemu_vfs_notification_req *req)
Get the number of elements in the original doca buffer linked list associated with the device-writabl...
void(* doca_devemu_vfs_io_event_vfs_notification_req_notice_handler_cb_t)(struct doca_devemu_vfs_notification_req *req, void *req_user_data, union doca_data event_user_data)
Function to be executed on vfs_notification_req_notice event occurrence. The Ownership of the doca_de...
enum doca_error doca_error_t
DOCA API return codes.
Convenience type for representing opaque data.