Files
Francesco Valla 80284e3ac0 virtqueue: add writable buffer helper
An application at device side might need to know if a buffer has been
marked as device-writable by the driver.
An example is the virtio SPI protocol, in which the direction of an
half-duplex communication can be determined by the device only by
checking if the buffer containing the data is writable or not.

Add a simple helper to test if a buffer is device-writable, that is,
if the VRING_DESC_F_WRITE flag is present on it.

Signed-off-by: Francesco Valla <francesco@valla.it>
2026-09-21 09:51:59 +02:00
..
2016-02-09 11:55:45 -08:00