search for: sysfs_remove_link

Displaying 9 results from an estimated 9 matches for "sysfs_remove_link".

2011 Jan 05
3
[PATCH] virtio-pci: add softlinks between virtio and pci
...dev.kobj, &vp_dev->vdev.dev.kobj, + "virtio_device"); + if (err) + goto out_register_device; + + err = sysfs_create_link(&vp_dev->vdev.dev.kobj, &pci_dev->dev.kobj, + "bus_device"); + if (err) + goto out_create_link; + return 0; +out_create_link: + sysfs_remove_link(&pci_dev->dev.kobj, "virtio_device"); +out_register_device: + unregister_virtio_device(&vp_dev->vdev); out_set_drvdata: pci_set_drvdata(pci_dev, NULL); pci_iounmap(pci_dev, vp_dev->ioaddr); @@ -685,6 +699,8 @@ static void __devexit virtio_pci_remove(struct pci_dev *p...
2011 Jan 05
3
[PATCH] virtio-pci: add softlinks between virtio and pci
...dev.kobj, &vp_dev->vdev.dev.kobj, + "virtio_device"); + if (err) + goto out_register_device; + + err = sysfs_create_link(&vp_dev->vdev.dev.kobj, &pci_dev->dev.kobj, + "bus_device"); + if (err) + goto out_create_link; + return 0; +out_create_link: + sysfs_remove_link(&pci_dev->dev.kobj, "virtio_device"); +out_register_device: + unregister_virtio_device(&vp_dev->vdev); out_set_drvdata: pci_set_drvdata(pci_dev, NULL); pci_iounmap(pci_dev, vp_dev->ioaddr); @@ -685,6 +699,8 @@ static void __devexit virtio_pci_remove(struct pci_dev *p...
2008 Feb 04
2
[PATCH 0/2] Move /sys/o2cb to /sys/fs/o2cb
...understanding what it's all about. The /sys/o2cb symlink has been appropariately marked as going away in two years - a timeline which we feel is appropriately long enough such that a very small number of people would be affected by it's removal. The first patch fixes a small problem with sysfs_remove_link() which I encountered while coding this all up. The 2nd one actually moves the directory, creates the symlink and adds the appropriate documentation. Please review, and if all goes well, indicate to me when you'd be comfortable with the small sysfs patch going upstream - I'd like to get t...
2011 May 01
2
[Patch] ocfs2: remove the /sys/o2cb symlink
...ed on mlock resource limits When: 2.6.31 diff --git a/fs/ocfs2/cluster/sys.c b/fs/ocfs2/cluster/sys.c index bc702da..a4b0773 100644 --- a/fs/ocfs2/cluster/sys.c +++ b/fs/ocfs2/cluster/sys.c @@ -57,7 +57,6 @@ static struct kset *o2cb_kset; void o2cb_sys_shutdown(void) { mlog_sys_shutdown(); - sysfs_remove_link(NULL, "o2cb"); kset_unregister(o2cb_kset); } @@ -69,14 +68,6 @@ int o2cb_sys_init(void) if (!o2cb_kset) return -ENOMEM; - /* - * Create this symlink for backwards compatibility with old - * versions of ocfs2-tools which look for things in /sys/o2cb. - */ - ret = sysfs_creat...
2008 Dec 10
6
[PATCH 0/6] Clean up virtio device object handling [was Re: [PATCH] virtio: make PCI devices take a virtio_pci module ref]
(Moved from kvm at vger to virtualization at linux-foundation, changed subject, cleaned up cc list) On Wed, 2008-12-10 at 13:02 +0100, Kay Sievers wrote: > On Wed, Dec 10, 2008 at 10:49, Mark McLoughlin <markmc at redhat.com> wrote: > > On Tue, 2008-12-09 at 19:16 +0100, Kay Sievers wrote: > >> On Tue, Dec 9, 2008 at 17:41, Mark McLoughlin <markmc at redhat.com>
2008 Dec 10
6
[PATCH 0/6] Clean up virtio device object handling [was Re: [PATCH] virtio: make PCI devices take a virtio_pci module ref]
(Moved from kvm at vger to virtualization at linux-foundation, changed subject, cleaned up cc list) On Wed, 2008-12-10 at 13:02 +0100, Kay Sievers wrote: > On Wed, Dec 10, 2008 at 10:49, Mark McLoughlin <markmc at redhat.com> wrote: > > On Tue, 2008-12-09 at 19:16 +0100, Kay Sievers wrote: > >> On Tue, Dec 9, 2008 at 17:41, Mark McLoughlin <markmc at redhat.com>
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding changes for Ocfs2. Aside from the usual set of cleanups and fixes that were inappropriate for 2.6.25, there are a few highlights: The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location meshes better with modern sysfs layout. A symbolic link has been placed in the old location so as to
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
..._VPORT_DELETED; list_del(&vport->peers); fc_host->npiv_vports_inuse--; put_device(&shost->shost_gendev); /* for fc_host->vport list */ } spin_unlock_irqrestore(shost->host_lock, flags); if (stat) return stat; if (dev->parent != &shost->shost_gendev) sysfs_remove_link(&shost->shost_gendev.kobj, dev_name(dev)); transport_remove_device(dev); device_del(dev); transport_destroy_device(dev); /* * Removing our self-reference should mean our * release function gets called, which will drop the remaining * parent reference and free the data structure....
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
..._VPORT_DELETED; list_del(&vport->peers); fc_host->npiv_vports_inuse--; put_device(&shost->shost_gendev); /* for fc_host->vport list */ } spin_unlock_irqrestore(shost->host_lock, flags); if (stat) return stat; if (dev->parent != &shost->shost_gendev) sysfs_remove_link(&shost->shost_gendev.kobj, dev_name(dev)); transport_remove_device(dev); device_del(dev); transport_destroy_device(dev); /* * Removing our self-reference should mean our * release function gets called, which will drop the remaining * parent reference and free the data structure....