Commit:     81bb0e198b4638ac65233b316f4588639dfe1fcd
Parent:     f52383d395178afde66d049e176bb2c59a8c941a
Author:     Brice Goglin <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 28 10:53:40 2007 +0100
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Feb 16 15:30:11 2007 -0800

    PCI: Make PCI device numa-node attribute visible in sysfs
    Export the numa-node attribute of PCI devices in sysfs so that
    user applications may choose where to be placed accordingly.
    Signed-off-by: Brice Goglin <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/pci/pci-sysfs.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 7a94076..cd913a2 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -143,6 +143,14 @@ static ssize_t is_enabled_show(struct device *dev,
        return sprintf (buf, "%u\n", atomic_read(&pdev->enable_cnt));
+static ssize_t
+numa_node_show(struct device *dev, struct device_attribute *attr, char *buf)
+       return sprintf (buf, "%d\n", dev->numa_node);
 static ssize_t
 msi_bus_show(struct device *dev, struct device_attribute *attr, char *buf)
@@ -194,6 +202,9 @@ struct device_attribute pci_dev_attrs[] = {
+       __ATTR_RO(numa_node),
        __ATTR(enable, 0600, is_enabled_show, is_enabled_store),
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to