vdev_thread_setname()
Set the name of a thread associated with 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.
Description:
Usually, to create threads you can use vdev_thread_create(), which creates a start routine for the new thread that calls vdev_thread_setname(). If you do call this latter function explicitly, you must not do so until the VDEV_CTRL_GUEST_CONFIGURED callback function has been invoked, confirming that the VM has been fully configured.
For more information, see the pthread_setname_np() entry in the C Library Reference.
Returns:
The value returned by pthread_setname_np().
Page updated:
