vdev_thread_setname()

Set the name of a thread associated to a vdev

Synopsis:

#include <qvm/vdev-core.h>
int vdev_thread_setname(const vdev_t *vdp,
                        const char *name)

Arguments:

vdp
A pointer to the vdev that created the thread.
name
The name of the thread; this name will be prefixed by the vdev string.

Library:

Provided by qvm; no external library is required.

Description:

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.

Returns:

The value returned by pthread_setname_np().