Skip to contentSkip to conversation

virtio: Describe @map and @vmap members in virtio_device struct

PATCH New Bagas Sanjaya 1 participant 1 message Dec 29, 2025 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 virtio: Describe @map and @vmap members in virtio_device struct

Sphinx reports kernel-doc warnings:

WARNING: ./include/linux/virtio.h:181 struct member 'map' not described in 'virtio_device'
WARNING: ./include/linux/virtio.h:181 struct member 'vmap' not described in 'virtio_device'

Describe these members.

Fixes bee8c7c24b7373 ("virtio: introduce map ops in virtio core")

---
Changes since v2 [1]:

- Apply wording suggestions (Michael)

[1]: https://lore.kernel.org/virtualization/[email protected]/

 include/linux/virtio.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/virtio.h +2 -0
index 3626eb6947282a..48b88c149eca43 100644
@@ -152,11 +152,13 @@ struct virtio_admin_cmd {
  * @id: the device type identification (used to match it with a driver).
  * @config: the configuration ops for this device.
  * @vringh_config: configuration ops for host vrings.
+ * @map: operations for mapping buffer for a virtio device.
  * @vqs: the list of virtqueues for this device.
  * @features: the 64 lower features supported by both driver and device.
  * @features_array: the full features space supported by both driver and
  *		    device.
  * @priv: private pointer for the driver's use.
+ * @vmap: device/domain used for mapping memory.
  * @debugfs_dir: debugfs directory entry.
  * @debugfs_filter_features: features to be filtered set by debugfs.
  */

base-commit: f8f9c1f4d0c7a64600e2ca312dec824a0bc2f1da

Signature · 1 line
An old man doll... just what I always wanted! - Clara