/** * virtsnd_ctl_msg_send_sync() - Simplified sending of synchronous message. * @snd: VirtIO sound device. * @msg: Control message. * * After returning from this function, the message will be deleted. If message * content is still needed, the caller must additionally to * virtsnd_ctl_msg_ref/unref() it. * * The msg_timeout_ms module parameter defines the message completion timeout. * If the message is not completed within this time, the function will return an * error. * * Context: Any context that permits to sleep. * Return: 0 on success, -errno on failure. * * The return value is a message status code (VIRTIO_SND_S_XXX) converted to an * appropriate -errno value.
*/ staticinlineint virtsnd_ctl_msg_send_sync(struct virtio_snd *snd, struct virtio_snd_msg *msg)
{ return virtsnd_ctl_msg_send(snd, msg, NULL, NULL, false);
}
/** * virtsnd_ctl_msg_send_async() - Simplified sending of asynchronous message. * @snd: VirtIO sound device. * @msg: Control message. * * Context: Any context. * Return: 0 on success, -errno on failure.
*/ staticinlineint virtsnd_ctl_msg_send_async(struct virtio_snd *snd, struct virtio_snd_msg *msg)
{ return virtsnd_ctl_msg_send(snd, msg, NULL, NULL, true);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.