[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] include: Annotate Local as _Out_opt_ in XENBUS_SHARED_INFO_GET_TIME


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
  • Date: Thu, 22 Oct 2026 09:30:18 +0200
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=vates.tech header.i="@vates.tech" header.h="From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:In-Reply-To:References:Feedback-ID"
  • Cc: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
  • Delivery-date: Thu, 22 Oct 2026 07:30:35 +0000
  • Feedback-id: default:8631fc262581453bbf619ec5b2062170:Sweego
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

SharedInfoGetTime() tests Local for NULL before writing it, and callers
pass NULL (SharedInfoGetTimeVersion2() in xenbus, wmi.c in xeniface).
Annotate the parameter as _Out_opt_, as the implementation already does,
and sync the header with the copy in xeniface.
No functional change.

Signed-off-by: Césaire Mounah <cesaire.mounah@xxxxxxxxxx>
---
 include/shared_info_interface.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/shared_info_interface.h b/include/shared_info_interface.h
index 5fdedfd..eb9adcb 100644
--- a/include/shared_info_interface.h
+++ b/include/shared_info_interface.h
@@ -139,7 +139,7 @@ typedef VOID
 (*XENBUS_SHARED_INFO_GET_TIME)(
     _In_ PINTERFACE         Interface,
     _Out_ PLARGE_INTEGER    Time,
-    _Out_ PBOOLEAN          Local
+    _Out_opt_ PBOOLEAN      Local
     );
 
 // {7E73C34F-1640-4649-A8F3-263BC930A004}
-- 
2.55.0.windows.5



--
Césaire Mounah | Vates Windows Guest Tools Engineer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.