#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/sysfs.h>
#include <linux/efi-bgrt.h>
static void *bgrt_image;
static struct kobject *bgrt_kobj;
#define BGRT_SHOW(_name, _member) …
BGRT_SHOW(…) …;
BGRT_SHOW(…) …;
BGRT_SHOW(…) …;
BGRT_SHOW(…) …;
BGRT_SHOW(…) …;
static BIN_ATTR_SIMPLE_RO(image);
static struct attribute *bgrt_attributes[] = …;
static struct bin_attribute *bgrt_bin_attributes[] = …;
static const struct attribute_group bgrt_attribute_group = …;
int __init acpi_parse_bgrt(struct acpi_table_header *table)
{ … }
static int __init bgrt_init(void)
{ … }
device_initcall(bgrt_init);