~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/filesystems/efivarfs.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 .. SPDX-License-Identifier: GPL-2.0
  2 
  3 =======================================
  4 efivarfs - a (U)EFI variable filesystem
  5 =======================================
  6 
  7 The efivarfs filesystem was created to address the shortcomings of
  8 using entries in sysfs to maintain EFI variables. The old sysfs EFI
  9 variables code only supported variables of up to 1024 bytes. This
 10 limitation existed in version 0.99 of the EFI specification, but was
 11 removed before any full releases. Since variables can now be larger
 12 than a single page, sysfs isn't the best interface for this.
 13 
 14 Variables can be created, deleted and modified with the efivarfs
 15 filesystem.
 16 
 17 efivarfs is typically mounted like this::
 18 
 19         mount -t efivarfs none /sys/firmware/efi/efivars
 20 
 21 Due to the presence of numerous firmware bugs where removing non-standard
 22 UEFI variables causes the system firmware to fail to POST, efivarfs
 23 files that are not well-known standardized variables are created
 24 as immutable files.  This doesn't prevent removal - "chattr -i" will work -
 25 but it does prevent this kind of failure from being accomplished
 26 accidentally.
 27 
 28 .. warning ::
 29       When a content of an UEFI variable in /sys/firmware/efi/efivars is
 30       displayed, for example using "hexdump", pay attention that the first
 31       4 bytes of the output represent the UEFI variable attributes,
 32       in little-endian format.
 33 
 34       Practically the output of each efivar is composed of:
 35 
 36           +-----------------------------------+
 37           |4_bytes_of_attributes + efivar_data|
 38           +-----------------------------------+
 39 
 40 *See also:*
 41 
 42 - Documentation/admin-guide/acpi/ssdt-overlays.rst
 43 - Documentation/ABI/removed/sysfs-firmware-efi-vars

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php