Re: [PATCH v2 1/1] PCI/hotplug: Add 'uevent' sysfs attribute to trigger slot events
From: Krzysztof Wilczyński
Date: Tue Apr 21 2026 - 13:17:33 EST
Hello,
> +static struct pci_slot_attribute hotplug_slot_attr_uevent = {
> + .attr = {.name = "uevent", .mode = S_IFREG | 0200},
> + .show = NULL,
> + .store = uevent_write_file
> +};
I think, you could use the __ATTR_WO() macro here.
Thank you!
Krzysztof