search for: hotplug_slot_attr_param

Displaying 3 results from an estimated 3 matches for "hotplug_slot_attr_param".

2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...plug_slot_ops *ops = slot->hotplug->ops; + + if (!try_module_get(ops->owner)) + return -ENODEV; + + if (ops->set_param) + retval = ops->set_param(slot->hotplug, buf, count); + + module_put(ops->owner); + + return retval ? retval : count; +} + +static struct pci_slot_attribute hotplug_slot_attr_param = { + .attr = {.name = "param", .mode = S_IFREG | S_IRUGO | S_IWUSR}, + .show = param_read_file, + .store = param_write_file +}; + static int has_power_file(struct pci_slot *pci_slot) { struct hotplug_slot *slot = pci_slot->hotplug; @@ -419,6 +455,17 @@ static int has_test_file(str...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...plug_slot_ops *ops = slot->hotplug->ops; + + if (!try_module_get(ops->owner)) + return -ENODEV; + + if (ops->set_param) + retval = ops->set_param(slot->hotplug, buf, count); + + module_put(ops->owner); + + return retval ? retval : count; +} + +static struct pci_slot_attribute hotplug_slot_attr_param = { + .attr = {.name = "param", .mode = S_IFREG | S_IRUGO | S_IWUSR}, + .show = param_read_file, + .store = param_write_file +}; + static int has_power_file(struct pci_slot *pci_slot) { struct hotplug_slot *slot = pci_slot->hotplug; @@ -419,6 +455,17 @@ static int has_test_file(str...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...plug_slot_ops *ops = slot->hotplug->ops; + + if (!try_module_get(ops->owner)) + return -ENODEV; + + if (ops->set_param) + retval = ops->set_param(slot->hotplug, buf, count); + + module_put(ops->owner); + + return retval ? retval : count; +} + +static struct pci_slot_attribute hotplug_slot_attr_param = { + .attr = {.name = "param", .mode = S_IFREG | S_IRUGO | S_IWUSR}, + .show = param_read_file, + .store = param_write_file +}; + static int has_power_file(struct pci_slot *pci_slot) { struct hotplug_slot *slot = pci_slot->hotplug; @@ -419,6 +455,17 @@ static int has_test_file(str...