Files
systemd/src/basic
Zbigniew Jędrzejewski-Szmek 9db9d6806e basic/efivars: read EFI variables using one read(), not two
In https://github.com/systemd/systemd/issues/38842 it is reported that we're again
having trouble accessing EFI variables:
  [  292.212415] H (udev-worker)[253]: Reading EFI variable /sys/firmware/efi/efivars/LoaderDevicePartUUID-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f.
  ...
  [  344.397961] H (udev-worker)[253]: Detected slow EFI variable read access on LoaderDevicePartUUID-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f: 52.185510s

We don't know what causes the slowdown, but it seems reasonable to avoid
unnecessary read() calls. We would read the 4-byte attr first, and then the
actual value later. But our code always reads the value (and discards the attr
in all cases except one, when _writing_ the variable), so let's optimize for
the case where we read the value and read the whole contents in one readv().
2025-09-17 09:27:54 +02:00
..
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-02 17:39:43 +02:00
2025-06-02 17:39:43 +02:00
2025-07-27 13:14:05 +02:00
2025-06-23 23:11:44 +09:00
2025-05-07 22:04:46 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-02 18:05:45 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-17 11:44:50 +02:00
2025-07-27 13:14:05 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-26 05:00:02 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00