search for: sysfs_create_link

Displaying 20 results from an estimated 21 matches for "sysfs_create_link".

2011 Jan 05
3
[PATCH] virtio-pci: add softlinks between virtio and pci
...t; +#include <linux/sysfs.h> MODULE_AUTHOR("Anthony Liguori <aliguori at us.ibm.com>"); MODULE_DESCRIPTION("virtio-pci"); @@ -667,8 +668,21 @@ static int __devinit virtio_pci_probe(struct pci_dev *pci_dev, if (err) goto out_set_drvdata; - return 0; + err = sysfs_create_link(&pci_dev->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; +o...
2011 Jan 05
3
[PATCH] virtio-pci: add softlinks between virtio and pci
...t; +#include <linux/sysfs.h> MODULE_AUTHOR("Anthony Liguori <aliguori at us.ibm.com>"); MODULE_DESCRIPTION("virtio-pci"); @@ -667,8 +668,21 @@ static int __devinit virtio_pci_probe(struct pci_dev *pci_dev, if (err) goto out_set_drvdata; - return 0; + err = sysfs_create_link(&pci_dev->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; +o...
2008 Feb 04
2
[PATCH 0/2] Move /sys/o2cb to /sys/fs/o2cb
Hi Greg, The following two patches move /sys/o2cb into /sys/fs/o2cb as we previously discussed. A symlink is created to maintain compatibility with existing versions of ocfs2-tools. A patch to automatically search /sys/fs/o2cb has been committed to the ocfs2-tools repo and a release with that code shouldn't be too far out. Old versions of ocfs2-tools have been tested and work fine with the
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...; + goto fail; > + retval = blk_register_queue(disk); > + if (retval) > + goto fail; > > /* > * Take an extra ref on queue which will be put on disk_release() > @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) > > retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, > "bdi"); > + if (retval) > + goto fail; > + > + retval = disk_add_events(disk); > + if (retval) > + goto fail; > + > + retval = blk_integrity_add(disk); > + if (retval) > + goto fail;...
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...; + goto fail; > + retval = blk_register_queue(disk); > + if (retval) > + goto fail; > > /* > * Take an extra ref on queue which will be put on disk_release() > @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) > > retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, > "bdi"); > + if (retval) > + goto fail; > + > + retval = disk_add_events(disk); > + if (retval) > + goto fail; > + > + retval = blk_integrity_add(disk); > + if (retval) > + goto fail;...
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...etval) > > > + goto fail; > > > > > > /* > > > * Take an extra ref on queue which will be put on disk_release() > > > @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) > > > > > > retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, > > > "bdi"); > > > + if (retval) > > > + goto fail; > > > + > > > + retval = disk_add_events(disk); > > > + if (retval) > > > + goto fail; > > > +...
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...etval) > > > + goto fail; > > > > > > /* > > > * Take an extra ref on queue which will be put on disk_release() > > > @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) > > > > > > retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, > > > "bdi"); > > > + if (retval) > > > + goto fail; > > > + > > > + retval = disk_add_events(disk); > > > + if (retval) > > > + goto fail; > > > +...
2011 May 01
2
[Patch] ocfs2: remove the /sys/o2cb symlink
...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_create_link(NULL, &o2cb_kset->kobj, "o2cb"); - if (ret) - goto error; - ret = sysfs_create_group(&o2cb_kset->kobj, &o2cb_attr_group); if (ret) goto error;
2016 Aug 17
0
[PATCH 06/15] genhd: Add return code to device_add_disk
...ster_queue(disk); > > + if (retval) > > + goto fail; > > > > /* > > * Take an extra ref on queue which will be put on disk_release() > > @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) > > > > retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, > > "bdi"); > > + if (retval) > > + goto fail; > > + > > + retval = disk_add_events(disk); > > + if (retval) > > + goto fail; > > + > > + retval = blk_integrity_add(...
2016 Aug 17
0
[PATCH 06/15] genhd: Add return code to device_add_disk
...= register_disk(parent, disk); + if (retval) + goto fail; + retval = blk_register_queue(disk); + if (retval) + goto fail; /* * Take an extra ref on queue which will be put on disk_release() @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, "bdi"); + if (retval) + goto fail; + + retval = disk_add_events(disk); + if (retval) + goto fail; + + retval = blk_integrity_add(disk); + if (retval) + goto fail; + return 0; +fail: WARN_ON(retval); - - disk_add_even...
2016 Aug 17
0
[PATCH 06/15] genhd: Add return code to device_add_disk
...fail; > > > > > > > > /* > > > > * Take an extra ref on queue which will be put on disk_release() > > > > @@ -644,10 +653,20 @@ void device_add_disk(struct device *parent, struct gendisk *disk) > > > > > > > > retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, > > > > "bdi"); > > > > + if (retval) > > > > + goto fail; > > > > + > > > > + retval = disk_add_events(disk); > > > > + if (retval) > > >...
2006 Mar 30
2
TDM04B sound volume
HI: Is there any way to raise up sound volume on fxo on TDM04B without changing tx-gain and rx-gain ? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 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>
2015 Sep 17
9
[Bug 92032] New: WARNING: CPU: 0 PID: 290 at lib/dma-debug.c:1205 check_sync+0x169/0x6e0()
...97413] [<f7e47b89>] drm_get_pci_dev+0x79/0x1c0 [drm] [ 37.497413] [<c07d9c1e>] ? pcibios_set_master+0x4e/0xa0 [ 37.497413] [<f85b654e>] nouveau_drm_probe+0x21e/0x260 [nouveau] [ 37.497413] [<c07dc24f>] pci_device_probe+0x6f/0xd0 [ 37.497413] [<c0674b35>] ? sysfs_create_link+0x25/0x50 [ 37.497413] [<c08c288d>] driver_probe_device+0x1cd/0x460 [ 37.497413] [<c08c2b6c>] ? __driver_attach+0x4c/0x90 [ 37.497413] [<c07dc182>] ? pci_match_device+0xd2/0x100 [ 37.497413] [<c08c2ba1>] __driver_attach+0x81/0x90 [ 37.497413] [<c08c2b20>...
2013 Dec 14
1
Crash on stable kernel 3.13.0-rc3 [NV05]
...6/0xff [drm] [<f08e020d>] drm_dev_register+0x86/0x17e [drm] [<f08e13cb>] drm_get_pci_dev+0x7a/0x10b [drm] [<c1140c50>] ? pcibios_set_master+0x2b/0x77 [<f0d59af4>] nouveau_drm_probe+0x1e2/0x212 [nouveau] [<c1141756>] pci_device_probe+0x52/0x88 [<c10e17db>] ? sysfs_create_link+0x20/0x30 [<c119555a>] driver_probe_device+0x4f/0x1b7 [<c11413d1>] ? pci_match_device+0x7b/0x84 [<c1195729>] __driver_attach+0x67/0x69 [<c11956c2>] ? driver_probe_device+0x1b7/0x1b7 [<c1194232>] bus_for_each_dev+0x3e/0x69 [<c11951f3>] driver_attach+0x19/0x1...
2016 Aug 17
20
[PATCH 00/15] Fix issue with KOBJ_ADD uevent versus disk attributes
This is an attempt to fix the issue that some disks' sysfs attributes are not ready at the time its KOBJ_ADD event is sent. The symptom is during device hotplug, udev may fail to find certain attributes, such as serial or wwn, of the disk. As a result the /dev/disk/by-id entries are not created. The cause is device_add_disk emits the uevent before returning, and the callers have to create
2016 Aug 17
20
[PATCH 00/15] Fix issue with KOBJ_ADD uevent versus disk attributes
This is an attempt to fix the issue that some disks' sysfs attributes are not ready at the time its KOBJ_ADD event is sent. The symptom is during device hotplug, udev may fail to find certain attributes, such as serial or wwn, of the disk. As a result the /dev/disk/by-id entries are not created. The cause is device_add_disk emits the uevent before returning, and the callers have to create
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
...r) { printk(KERN_ERR "FC Virtual Port LLDD Create failed\n"); goto delete_vport_all; } /* * if the parent isn't the physical adapter's Scsi_Host, ensure * the Scsi_Host at least contains ia symlink to the vport. */ if (pdev != &shost->shost_gendev) { error = sysfs_create_link(&shost->shost_gendev.kobj, &dev->kobj, dev_name(dev)); if (error) printk(KERN_ERR "%s: Cannot create vport symlinks for " "%s, err=%d\n", __func__, dev_name(dev), error); } spin_lock_irqsave(shost->host_lock, flags); vport->flags &amp...