vdev_get_vdevpeer()
Retrieve or create the vdevpeer object associated with a vdev
Synopsis:
#include <qvm/vdev-core.h>qvm_vdevpeer_t* vdev_get_vdevpeer(vdev_t *vdp,
const char *peer_path,
unsigned flags)Arguments:
- vdp
- A pointer to a vdev.
- peer_path
- A pointer to the path to the remote peer.
- flags
- Flags for the vdevpeer object's channel.
Returns:
A pointer to a vdevpeer object, or NULL in case of error.
Page updated:
