Files
erofs-linux/include/linux/prmt.h
T
Yazen Ghannam 83be4bee57 ACPI: PRM: Add acpi_prm_handler_available()
Add a helper function to check if a PRM handler/module is present.

This can be used during init time by code that depends on a particular
handler. If the handler is not present, then the code does not need to
be loaded.

Signed-off-by: Yazen Ghannam <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: "Mario Limonciello (AMD)" <[email protected]>
Acked-by: "Rafael J. Wysocki (Intel)" <[email protected]>
Link: https://patch.msgid.link/all/[email protected]
2025-10-27 15:45:22 +01:00

17 lines
495 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#include <linux/uuid.h>
#ifdef CONFIG_ACPI_PRMT
void init_prmt(void);
bool acpi_prm_handler_available(const guid_t *handler_guid);
int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer);
#else
static inline void init_prmt(void) { }
static inline bool acpi_prm_handler_available(const guid_t *handler_guid) { return false; }
static inline int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer)
{
return -EOPNOTSUPP;
}
#endif