linux/drivers/platform/wmi/internal.h
Armin Wolf 204b52fadf
platform/wmi: Prepare to reject undersized unmarshalling results
Driver using the buffer-based WMI API usually reject buffers resulting
from WMI method calls or block queries if they contain not enough data.
Prepare the WMI core for assisting in this by automatically rejecting
undersized unmarshalling results.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20260406203237.2970-4-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-04-13 14:11:22 +03:00

19 lines
471 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Internal interfaces used by the WMI core.
*
* Copyright (C) 2025 Armin Wolf <W_Armin@gmx.de>
*/
#ifndef _WMI_INTERNAL_H_
#define _WMI_INTERNAL_H_
union acpi_object;
struct wmi_buffer;
int wmi_unmarshal_acpi_object(const union acpi_object *obj, struct wmi_buffer *buffer,
size_t min_size);
int wmi_marshal_string(const struct wmi_buffer *buffer, struct acpi_buffer *out);
#endif /* _WMI_INTERNAL_H_ */