mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
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>
19 lines
471 B
C
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_ */
|