Displaying 8 results from an estimated 8 matches for "sysfs_path".
2013 Apr 11
2
[PATCH 1/2] btrfs-progs: replace blkid_probe_get_wholedisk_devno
blkid_probe_get_wholedisk_devno() isn''t available in some older
versions of libblkid. It was used to work around an old
bug in blkid_devno_to_wholedisk(), but that has been fixed since
5cd0823 libblkid: fix blkid_devno_to_wholedisk(), present in
util-linux 2.17 and beyond.
If we happen to be missing that fix, the worst that happens is
that we''d fail to detect that a device is
2012 May 15
5
[PATCH 0 of 4 v3] Add commands to automatically prep devices for pass-through
Add commands to automatically prep devices for pass-through
The current method for passing through devices requires users to
either modify cryptic Linux boot parameters and reboot, or do a lot of
manual reads and writes into sysfs nodes.
This set of patches introduces commands to make this easier. It expands
on the concept of "assignable" (from the list_assignable_devices command).
2007 Jun 01
0
HAL and NUT feedback
...system = 'usb_device' (string)
> info.udi = '/org/freedesktop/Hal/devices/usb_device_592_2_noserial'
> (string)
> info.vendor = 'Powerware Corp.' (string)
> linux.hotplug_type = 2 (0x2) (int)
> linux.subsystem = 'usb' (string)
> linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:07.2/usb1/1-1' (string)
> usb_device.bus_number = 1 (0x1) (int)
> usb_device.can_wake_up = true (bool)
> usb_device.configuration_value = 1 (0x1) (int)
> usb_device.device_class = 0 (0x0) (int)
> usb_device.device_protocol...
2013 Sep 04
0
[PATCH] Btrfs-progs: fix compile warning in is_ssd()
...e)
return 0;
/* Get whole disk name (not full path) for this devno */
- blkid_devno_to_wholedisk(devno, wholedisk, sizeof(wholedisk), NULL);
+ ret = blkid_devno_to_wholedisk(devno,
+ wholedisk, sizeof(wholedisk), NULL);
+ if (ret) {
+ blkid_free_probe(probe);
+ return 0;
+ }
snprintf(sysfs_path, PATH_MAX, "/sys/block/%s/queue/rotational",
wholedisk);
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...;
sscanf(vdevfn + 2, "%x", &pcidev->vdevfn);
@@ -1211,22 +1222,22 @@ int libxl_device_pci_add(struct libxl_ctx *ctx, uint32_t domid, libxl_device_pci
int i;
if (f == NULL) {
- XL_LOG(ctx, XL_LOG_ERROR, "Couldn''t open %s\n", sysfs_path);
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "Couldn''t open %s", sysfs_path);
return -1;
}
for (i = 0; i < PROC_PCI_NUM_RESOURCES; i++) {
- fscanf(f, "0x%x 0x%x 0x%x\n", &start, &end, &flags);
+ fscan...
2008 May 16
19
[Bug 15949] New: LVDS-0 has wrapped screen with Randr1.2
...51 [Geforce 6150 Go]' (string)
info.subsystem = 'pci' (string)
info.udi = '/org/freedesktop/Hal/devices/pci_10de_244' (string)
info.vendor = 'nVidia Corporation' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'pci' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:05.0' (string)
pci.device_class = 3 (0x3) (int)
pci.device_protocol = 0 (0x0) (int)
pci.device_subclass = 0 (0x0) (int)
pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:05.0' (string)
pci.product = 'C51 [Geforce 6150 Go...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...LOG(ctx, XL_LOG_ERROR, "qemu refused to add device: %s", vdevfn);
else if ( sscanf(vdevfn, "0x%x", &pcidev->vdevfn) != 1 )
@@ -632,7 +638,7 @@ static int do_pci_add(libxl_ctx *ctx, ui
if ( rc )
return ERROR_FAIL;
} else {
- char *sysfs_path = libxl_sprintf(ctx, SYSFS_PCI_DEV"/"PCI_BDF"/resource", pcidev->domain,
+ char *sysfs_path = libxl_sprintf(gc, SYSFS_PCI_DEV"/"PCI_BDF"/resource", pcidev->domain,
pcidev->bus, pcidev->dev, pcidev-&...
2008 Jul 28
5
Hardware serial number access from (a) command(s)
Over the weekend, I had to make a technical support call on one of my
DVD burners, and at one point the recorded message mentioned I should
have my serial number handy. I thought there was a way to read that
from at least one piece of software on the system, but I couldn't
remember one and man -k on a number of subjects was unrevealing.
Can someone enlighten me (us)?
Thanks.
mhr