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
56struct msi_desc;56struct msi_desc;
57struct pci_dev;57struct pci_dev;
58struct platform_msi_priv_data;58struct platform_msi_priv_data;
59struct attribute_group;
60
59void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg);61void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg);
60#ifdef CONFIG_GENERIC_MSI_IRQ62#ifdef CONFIG_GENERIC_MSI_IRQ
61void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg);63void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg);
@@ -174,9 +176,11 @@ struct msi_desc { · 112 unmodified lines
174/**176/**
175 * msi_device_data - MSI per device data177 * msi_device_data - MSI per device data
176 * @properties: MSI properties which are interesting to drivers178 * @properties: MSI properties which are interesting to drivers
179 * @attrs: Pointer to the sysfs attribute group
177 */180 */
178struct msi_device_data {181struct msi_device_data {
179 unsigned long properties;182 unsigned long properties;
183 const struct attribute_group **attrs;
180};184};
181 185
182int msi_setup_device_data(struct device *dev);186int 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