Set the name of a thread associated to a vdev
#include <qvm/vdev-core.h>
int vdev_thread_setname(const vdev_t *vdp, const char *name)
See pthread_setname_np() in the C Library Reference. Usually, to create threads you can use vdev_thread_create(), which calls vdev_thread_setname() automatically. This function may not be used until the VDEV_CTRL_GUEST_CONFIGURED control function has been invoked, confirming that the VM has been fully configured.
The value returned by pthread_setname_np().