Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933566AbdC3LNp (ORCPT ); Thu, 30 Mar 2017 07:13:45 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50142 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933446AbdC3LNn (ORCPT ); Thu, 30 Mar 2017 07:13:43 -0400 From: Cornelia Huck To: mst@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Cornelia Huck Subject: [PATCH 2/2] virtio: virtio_driver doc Date: Thu, 30 Mar 2017 13:13:33 +0200 X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170330111333.47725-1-cornelia.huck@de.ibm.com> References: <20170330111333.47725-1-cornelia.huck@de.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 17033011-0040-0000-0000-00000357BA23 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17033011-0041-0000-0000-000024BE420E Message-Id: <20170330111333.47725-3-cornelia.huck@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-30_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703300099 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1151 Lines: 27 Add comments for the virtio_driver members that were not documented. Signed-off-by: Cornelia Huck --- include/linux/virtio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 8f4d4bf..e80adf2 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -133,9 +133,13 @@ int virtio_device_restore(struct virtio_device *dev); * @feature_table_legacy: same as feature_table but when working in legacy mode. * @feature_table_size_legacy: number of entries in feature table legacy array. * @probe: the function to call when a device is found. Returns 0 or -errno. + * @scan: optional function to call after successful probe; intended + * for virtio-scsi to invoke a scan. * @remove: the function to call when a device is removed. * @config_changed: optional function to call when the device configuration * changes; may be called in interrupt context. + * @freeze: optional function to call during suspend/hibernation. + * @restore: optional function to call on resume. */ struct virtio_driver { struct device_driver driver; -- 2.8.4