Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153895 Details for
Bug 238626
FEATURE REQUEST: LTC34700: 201021: Need support for devices on /sys/bus/ibmebus in HAL
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
hal-0.5.8.1-ibmebus.patch: patch to support searching /sys/bus/ibmebus
hal-0.5.8.1-ibmebus.patch (text/plain), 1.97 KB, created by
Scott Moser
on 2007-05-01 21:11:47 UTC
(
hide
)
Description:
hal-0.5.8.1-ibmebus.patch: patch to support searching /sys/bus/ibmebus
Filename:
MIME Type:
Creator:
Scott Moser
Created:
2007-05-01 21:11:47 UTC
Size:
1.97 KB
patch
obsolete
>--- a/hald/linux/physdev.c.ibmebus 2007-04-18 07:02:53.000000000 -0400 >+++ b/hald/linux/physdev.c 2007-04-18 06:47:34.000000000 -0400 >@@ -1390,6 +1390,42 @@ > return TRUE; > } > >+static HalDevice * >+ibmebus_add (const gchar *sysfs_path, HalDevice *parent) >+{ >+ HalDevice *d; >+ >+ d = hal_device_new (); >+ hal_device_property_set_string (d, "linux.sysfs_path", sysfs_path); >+ hal_device_property_set_string (d, "linux.sysfs_path_device", sysfs_path); >+ hal_device_property_set_string (d, "info.bus", "ibmebus"); >+ if (parent != NULL) { >+ hal_device_property_set_string (d, "info.parent", parent->udi); >+ } else { >+ hal_device_property_set_string (d, "info.parent", "/org/freedesktop/Hal/devices/computer"); >+ } >+ >+ hal_util_set_driver (d, "info.linux.driver", sysfs_path); >+ >+ hal_util_set_string_from_file (d, "ibmebus.devspec", sysfs_path, "devspec"); >+ hal_util_set_string_from_file (d, "ibmebus.type", sysfs_path, "type"); >+ >+ return d; >+} >+ >+static gboolean >+ibmebus_compute_udi (HalDevice *d) >+{ >+ gchar udi[256]; >+ >+ hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), >+ "/org/freedesktop/Hal/devices/ibmebus%s", >+ hal_device_property_get_string (d, "ibmebus.devspec")); >+ hal_device_set_udi (d, udi); >+ hal_device_property_set_string (d, "info.udi", udi); >+ return TRUE; >+} >+ > /*--------------------------------------------------------------------------------------------------------------*/ > > /*--------------------------------------------------------------------------------------------------------------*/ >@@ -1524,6 +1560,13 @@ > .remove = physdev_remove > }; > >+static PhysDevHandler physdev_handler_ibmebus = { >+ .subsystem = "ibmebus", >+ .add = ibmebus_add, >+ .compute_udi = ibmebus_compute_udi, >+ .remove = physdev_remove >+}; >+ > static PhysDevHandler *phys_handlers[] = { > &physdev_handler_pci, > &physdev_handler_usb, >@@ -1541,6 +1584,7 @@ > &physdev_handler_iucv, > &physdev_handler_pseudo, > &physdev_handler_vio, >+ &physdev_handler_ibmebus, > NULL > }; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238626
: 153895 |
161233
|
161306