mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 09:41:30 +00:00
doc: update virtio related functions doc comments
Update some virtio, VBS-K, vhost APIs documents. Tracked-On: #1595 Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>
This commit is contained in:
@@ -28,7 +28,13 @@ vbs_vqs_info_set(int fd, void *arg)
|
||||
}
|
||||
|
||||
/* VBS-K common ops */
|
||||
/* VBS-K reset */
|
||||
/**
|
||||
* @brief Virtio kernel module reset.
|
||||
*
|
||||
* @param fd File descriptor representing virtio backend in kernel module.
|
||||
*
|
||||
* @return 0 on OK and non-zero on error.
|
||||
*/
|
||||
int
|
||||
vbs_kernel_reset(int fd)
|
||||
{
|
||||
@@ -40,7 +46,15 @@ vbs_kernel_reset(int fd)
|
||||
* change the configuration of the virtio device after VBS-K has been
|
||||
* initialized.
|
||||
*/
|
||||
/* VBS-K start/stop */
|
||||
/**
|
||||
* @brief Virtio kernel module start.
|
||||
*
|
||||
* @param fd File descriptor representing virtio backend in kernel module.
|
||||
* @param dev Pointer to struct vbs_dev_info.
|
||||
* @param vqs Pointer to struct vbs_vqs_info.
|
||||
*
|
||||
* @return 0 on OK and non-zero on error.
|
||||
*/
|
||||
int
|
||||
vbs_kernel_start(int fd, struct vbs_dev_info *dev, struct vbs_vqs_info *vqs)
|
||||
{
|
||||
@@ -66,6 +80,13 @@ vbs_kernel_start(int fd, struct vbs_dev_info *dev, struct vbs_vqs_info *vqs)
|
||||
return VIRTIO_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Virtio kernel module stop.
|
||||
*
|
||||
* @param fd File descriptor representing virtio backend in kernel module.
|
||||
*
|
||||
* @return 0 on OK and non-zero on error.
|
||||
*/
|
||||
int
|
||||
vbs_kernel_stop(int fd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user