Skip to contentSkip to conversation

efi: add comment to avoid future expanding of sysfs systab

PATCH In review Dave Young 2 participants 2 messages Dec 5, 2017 EFI

lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/1 efi: add comment to avoid future expanding of sysfs systab

/sys/firmware/efi/systab shows several different values, it breaks sysfs one file one value design. But since there are already userspace tools depend on it eg. kexec-tools so add code comment to alert future expanding of this file.

---
 drivers/firmware/efi/efi.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/firmware/efi/efi.c +2 -0
@@ -109,6 +109,8 @@ struct kobject *efi_kobj;
 /*
  * Let's not leave out systab information that snuck into
  * the efivars driver
+ * Note, do not add more fields in systab sysfs file as it breaks sysfs
+ * one value per file rule!
  */
 static ssize_t systab_show(struct kobject *kobj,
 			   struct kobj_attribute *attr, char *buf)