History

genirq/msi: Provide msi_device_populate/destroy_sysfs()

Add new allocation functions which can be activated by domain info flags. They store the groups pointer in struct msi_device_data.

Thomas Gleixner committed 4 years ago

Commit bf6e0541 parent 686073e2 files · +44 −2Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/msi.h+4−0
@@ -56,6 +56,8 @@ struct irq_data; · 55 unmodified lines
5656 struct msi_desc;
5757 struct pci_dev;
5858 struct platform_msi_priv_data;
59+struct attribute_group;
60+
5961 void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
6062 #ifdef CONFIG_GENERIC_MSI_IRQ
6163 void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg);
@@ -174,9 +176,11 @@ struct msi_desc { · 112 unmodified lines
174176 /**
175177 * msi_device_data - MSI per device data
176178 * @properties: MSI properties which are interesting to drivers
179+ * @attrs: Pointer to the sysfs attribute group
177180 */
178181 struct msi_device_data {
179182 unsigned long properties;
183+ const struct attribute_group **attrs;
180184 };
181185
182186 int msi_setup_device_data(struct device *dev);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t