Home
last modified time | relevance | path

Searched refs:mokvar_sysfs (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/firmware/efi/
H A Dmokvar-table.c314 struct efi_mokvar_sysfs_attr *mokvar_sysfs = NULL; in efi_mokvar_sysfs_init() local
335 mokvar_sysfs = kzalloc(sizeof(*mokvar_sysfs), GFP_KERNEL); in efi_mokvar_sysfs_init()
336 if (!mokvar_sysfs) { in efi_mokvar_sysfs_init()
341 sysfs_bin_attr_init(&mokvar_sysfs->bin_attr); in efi_mokvar_sysfs_init()
342 mokvar_sysfs->bin_attr.private = mokvar_entry; in efi_mokvar_sysfs_init()
343 mokvar_sysfs->bin_attr.attr.name = mokvar_entry->name; in efi_mokvar_sysfs_init()
344 mokvar_sysfs->bin_attr.attr.mode = 0400; in efi_mokvar_sysfs_init()
345 mokvar_sysfs->bin_attr.size = mokvar_entry->data_size; in efi_mokvar_sysfs_init()
346 mokvar_sysfs->bin_attr.read = efi_mokvar_sysfs_read; in efi_mokvar_sysfs_init()
349 &mokvar_sysfs->bin_attr); in efi_mokvar_sysfs_init()
[all …]