xref: /freebsd/share/man/man4/acpi_einj.4 (revision bc49842769bd3657a5a1e7de878c0ce8780a2f86)
1.\"
2.\" Copyright (c) 2025-2026 Netflix, Inc.
3.\"
4.\" SPDX-License-Identifier: BSD-2-Clause
5.Dd July 7, 2026
6.Dt ACPI_EINJ 4
7.Os
8.Sh NAME
9.Nm acpi_einj
10.Nd ACPI platform error injection module
11.Sh SYNOPSIS
12.In dev/acpica/acpiio.h
13.Sh DESCRIPTION
14The
15.Nm
16modules provides support for the error injection facility from the ACPI
17Platform Error Interface
18.Pq APEI .
19This module parses the EINJ table to construct a list of instructions
20associated with actions.
21The module provides several
22.Xr ioctl 2
23commands on the
24.Fa /dev/acpi
25character device used by the
26.Xr einj 8
27utility.
28.Sh IOCTLS
29The following commands are supported:
30.Bl -tag -width indent
31.It Dv ACPIIO_EINJ_GET_INFO
32Returns a
33.Vt struct acpi_einj_info
34object to the caller.
35.It Dv ACPIIO_EINJ_GET_VENDOR
36If the host supports the
37.Cm SET_ERROR_TYPE_WITH_ADDRESS
38command that includes a vendor extension structure,
39this command stores a copy of the vendor extension structure in the buffer
40described by the caller-provided
41.Vt struct acpi_einj_vendor_info .
42.It Dv ACPIIO_EINJ_SET_ERROR
43Injects a platform error described by a
44.Vt struct acpi_einj_error
45object provided by the caller.
46.El
47.Sh FILES
48.Bl -tag -width "/boot/kernel/acpi_einj.ko" -compact
49.It Pa /boot/kernel/acpi_einj.ko
50.Sh SEE ALSO
51.Xr acpi 4 ,
52.Xr einj 8
53.El
54.Sh HISTORY
55The
56.Nm
57module first appeared in
58.Fx 16.0 .
59