search for: sysfs_remove_file

Displaying 20 results from an estimated 29 matches for "sysfs_remove_file".

2015 Mar 09
2
[PATCH] 9p/trans_virtio: fix hot-unplug
...ime + 10 * HZ)) { + dev_emerg(&vdev->dev, "p9_virtio_remove: " + "waiting for device in use.\n"); + warning_time = jiffies; + } + mutex_lock(&virtio_9p_lock); + } + mutex_unlock(&virtio_9p_lock); + + vdev->config->del_vqs(vdev); + sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); kfree(chan->tag); -- MST
2015 Mar 09
2
[PATCH] 9p/trans_virtio: fix hot-unplug
...ime + 10 * HZ)) { + dev_emerg(&vdev->dev, "p9_virtio_remove: " + "waiting for device in use.\n"); + warning_time = jiffies; + } + mutex_lock(&virtio_9p_lock); + } + mutex_unlock(&virtio_9p_lock); + + vdev->config->del_vqs(vdev); + sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); kfree(chan->tag); -- MST
2008 Sep 27
0
[PATCH 4/9] dom0 PCI: support SR-IOV capability
...reate_file(&iov->ve[i].kobj, &vf_attr.attr); + if (rc) { + kobject_unregister(&iov->ve[i].kobj); + goto failed3; + } + } + + return; + +failed3: + for (j = 0; j < i; j++) { + sysfs_remove_file(&iov->ve[j].kobj, &vf_attr.attr); + kobject_unregister(&iov->ve[j].kobj); + } +failed2: + for (j = 0; j < i; j++) + sysfs_remove_file(&dev->iov->kobj, &iov_attr[j].attr); + kobject_unregister(&iov->kobj); +faile...
2008 Sep 27
3
[PATCH 4/6 v3] PCI: support SR-IOV capability
...sysfs_create_file(&iov->ve[i].kobj, &vf_attr.attr); + if (rc) { + kobject_put(&iov->ve[i].kobj); + goto failed3; + } + } + + return; + +failed3: + for (j = 0; j < i; j++) { + sysfs_remove_file(&iov->ve[j].kobj, &vf_attr.attr); + kobject_put(&iov->ve[j].kobj); + } +failed2: + for (j = 0; j < i; j++) + sysfs_remove_file(&dev->iov->kobj, &iov_attr[j].attr); + kobject_put(&iov->kobj); +failed1: + kf...
2008 Sep 27
3
[PATCH 4/6 v3] PCI: support SR-IOV capability
...sysfs_create_file(&iov->ve[i].kobj, &vf_attr.attr); + if (rc) { + kobject_put(&iov->ve[i].kobj); + goto failed3; + } + } + + return; + +failed3: + for (j = 0; j < i; j++) { + sysfs_remove_file(&iov->ve[j].kobj, &vf_attr.attr); + kobject_put(&iov->ve[j].kobj); + } +failed2: + for (j = 0; j < i; j++) + sysfs_remove_file(&dev->iov->kobj, &iov_attr[j].attr); + kobject_put(&iov->kobj); +failed1: + kf...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...nt fs_add_slot(struct pci_slot *slot) goto exit_test; } + if (has_param_file(slot) == 0) { + retval = sysfs_create_file(&slot->kobj, + &hotplug_slot_attr_param.attr); + if (retval) + goto exit_param; + } + goto exit; +exit_param: + if (has_param_file(slot) == 0) + sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_param.attr); + exit_test: if (has_cur_bus_speed_file(slot) == 0) sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_cur_bus_speed.attr); @@ -523,6 +581,9 @@ static void fs_remove_slot(struct pci_slot *slot) if (has_test_file(slot) == 0)...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...nt fs_add_slot(struct pci_slot *slot) goto exit_test; } + if (has_param_file(slot) == 0) { + retval = sysfs_create_file(&slot->kobj, + &hotplug_slot_attr_param.attr); + if (retval) + goto exit_param; + } + goto exit; +exit_param: + if (has_param_file(slot) == 0) + sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_param.attr); + exit_test: if (has_cur_bus_speed_file(slot) == 0) sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_cur_bus_speed.attr); @@ -523,6 +581,9 @@ static void fs_remove_slot(struct pci_slot *slot) if (has_test_file(slot) == 0)...
2008 Sep 01
1
[PATCH 1/4 v2] PCI: introduce new base functions
...nt fs_add_slot(struct pci_slot *slot) goto exit_test; } + if (has_param_file(slot) == 0) { + retval = sysfs_create_file(&slot->kobj, + &hotplug_slot_attr_param.attr); + if (retval) + goto exit_param; + } + goto exit; +exit_param: + if (has_param_file(slot) == 0) + sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_param.attr); + exit_test: if (has_cur_bus_speed_file(slot) == 0) sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_cur_bus_speed.attr); @@ -523,6 +581,9 @@ static void fs_remove_slot(struct pci_slot *slot) if (has_test_file(slot) == 0)...
2015 Jul 09
0
[PATCH] 9p/trans_virtio: reset virtio device on remove
...t/9p/trans_virtio.c index 9dd49ca..6e70ddb 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -704,6 +704,7 @@ static void p9_virtio_remove(struct virtio_device *vdev) mutex_unlock(&virtio_9p_lock); + vdev->config->reset(vdev); vdev->config->del_vqs(vdev); sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); -- 2.3.8
2015 Jul 09
0
[PATCH] 9p/trans_virtio: reset virtio device on remove
...t/9p/trans_virtio.c index 9dd49ca..6e70ddb 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -704,6 +704,7 @@ static void p9_virtio_remove(struct virtio_device *vdev) mutex_unlock(&virtio_9p_lock); + vdev->config->reset(vdev); vdev->config->del_vqs(vdev); sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); -- 2.3.8
2015 Mar 12
0
[PATCH] 9p/trans_virtio: fix hot-unplug
...t;p9_virtio_remove: " > + "waiting for device in use.\n"); > + warning_time = jiffies; > + } > + mutex_lock(&virtio_9p_lock); > + } > + > mutex_unlock(&virtio_9p_lock); > + > + vdev->config->del_vqs(vdev); > + > sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); > kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); > kfree(chan->tag); > -- > MST
2015 Mar 12
0
[PATCH] 9p/trans_virtio: fix hot-unplug
...t;p9_virtio_remove: " > + "waiting for device in use.\n"); > + warning_time = jiffies; > + } > + mutex_lock(&virtio_9p_lock); > + } > + > mutex_unlock(&virtio_9p_lock); > + > + vdev->config->del_vqs(vdev); > + > sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); > kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); > kfree(chan->tag); > -- > MST
2008 Oct 14
8
[PATCH 0/8 v4] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. [PATCH 1/8 v4] PCI: define PCI resource names in a 'enum' [PATCH 2/8 v4] PCI: export __pci_read_base
2008 Oct 14
8
[PATCH 0/8 v4] PCI: Linux kernel SR-IOV support
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. [PATCH 1/8 v4] PCI: define PCI resource names in a 'enum' [PATCH 2/8 v4] PCI: export __pci_read_base
2015 Mar 12
1
[PATCH] 9p/trans_virtio: fix hot-unplug
...ng for device in use.\n"); > > + warning_time = jiffies; > > + } > > + mutex_lock(&virtio_9p_lock); > > + } > > + > > mutex_unlock(&virtio_9p_lock); > > + > > + vdev->config->del_vqs(vdev); > > + > > sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); > > kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); > > kfree(chan->tag); > > -- > > MST
2015 Mar 12
1
[PATCH] 9p/trans_virtio: fix hot-unplug
...ng for device in use.\n"); > > + warning_time = jiffies; > > + } > > + mutex_lock(&virtio_9p_lock); > > + } > > + > > mutex_unlock(&virtio_9p_lock); > > + > > + vdev->config->del_vqs(vdev); > > + > > sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); > > kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); > > kfree(chan->tag); > > -- > > MST
2008 Jun 12
0
[PATCH 2/2] extract vmcoreinfo from /proc/vmcore for Xen
...zx\n", + paddr_vmcoreinfo_xen, vmcoreinfo_size_xen); +} + +HYPERVISOR_ATTR_RO(vmcoreinfo); + +static int __init xen_sysfs_vmcoreinfo_init(void) +{ + return sysfs_create_file(&hypervisor_subsys.kset.kobj, &vmcoreinfo_attr.attr); +} + +static void xen_sysfs_vmcoreinfo_destroy(void) +{ + sysfs_remove_file(&hypervisor_subsys.kset.kobj, &vmcoreinfo_attr.attr); +} + static int __init hyper_sysfs_init(void) { int ret; @@ -354,9 +373,14 @@ static int __init hyper_sysfs_init(void) if (ret) goto uuid_out; ret = xen_properties_init(); + if (ret) + goto prop_out; + ret = xen_sysfs_vmcorei...
2012 May 16
2
The strange case of xen_netback not returning ARP replies
...fff810495aa>] warn_slowpath_common+0x7a/0xb0 [ 1257.228836] [<ffffffff81049681>] warn_slowpath_fmt+0x41/0x50 [ 1257.228842] [<ffffffff81057ba7>] ? lock_timer_base+0x37/0x70 [ 1257.228850] [<ffffffff811a7433>] sysfs_attr_ns+0x93/0xa0 [ 1257.228856] [<ffffffff811a7aef>] sysfs_remove_file+0x1f/0x40 [ 1257.228862] [<ffffffff812e5622>] device_remove_file+0x12/0x20 [ 1257.228870] [<ffffffffa00faf5a>] xennet_remove+0x84/0xac [xen_netfront] [ 1257.228875] [<ffffffff812b5c82>] xenbus_dev_remove+0x42/0xa0 [ 1257.228881] [<ffffffff812e85a7>] __device_release_driv...
2006 May 18
27
[PATCH] /sys/hypervisor/uuid
...+ ret = sprintf(buffer, "%s\n", val + 4); + kfree(val); + + return ret; +} + +HYPERVISOR_ATTR_RO(uuid); + +static int __init xen_sysfs_uuid_init(void) +{ + return sysfs_create_file(&hypervisor_subsys.kset.kobj, &uuid_attr.attr); +} + +static void xen_sysfs_uuid_destroy(void) +{ + sysfs_remove_file(&hypervisor_subsys.kset.kobj, &uuid_attr.attr); } /* xen compilation attributes */ @@ -285,10 +318,15 @@ static int __init hyper_sysfs_init(void) ret = xen_compilation_init(); if (ret) goto comp_out; + ret = xen_sysfs_uuid_init(); + if (ret) + goto uuid_out; ret = xen_properti...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...s SR-IOV capability + * @dev: PCI device + * + * Should be called upon Physical Function removal, or power state + * change. All previous allocated Virtual Functions are reclaimed. + */ +void pci_iov_disable(struct pci_dev *dev) +{ + int i; + struct pci_iov *iov = dev->iov; + + BUG_ON(!iov); + + sysfs_remove_file(&dev->dev.kobj, &dev_attr_iov.attr); + + for (i = 0; i < iov->nr_virtfn; i++) + iov_remove_virtfn(dev, i); + + iov_set_vfe(dev, 0); + iov_free_res(dev); + kfree(iov->args); + kfree(iov); + dev->iov = NULL; +} +EXPORT_SYMBOL_GPL(pci_iov_disable); diff --git a/drivers/pci/pci....