get_hal_sysfs_path

Richard Hughes hughsient at gmail.com
Thu Mar 1 12:39:55 PST 2007


On 01/03/07, Kay Sievers <kay.sievers at vrfy.org> wrote:
> On Thu, 2007-03-01 at 20:31 +0000, Richard Hughes wrote:
> > Question: Does sysfs *ever* live outside of /sys?
> >
> > I guess this is a question for Kay, but I think I remember some udev
> > configuration being removed to force sysfs to /sys IIRC.
> >
> > If this is now static, we can get rid of calls to get_hal_sysfs_path
> > and just replace them with "/sys" - some of which are being
> > g_snprintf'd in the fast path or just using up space in the coldplug
> > code.
>
> /sys is like /proc, it's never anywhere else. We may only want to
> implement a test case for HAL some day and would need to overwrite it,
> but probably only at compile-time of a test binary.

So leave get_hal_sysfs_path alone or rip it out in your opinion? Or
even put it as a compile time constant like SYSFS_PATH which would be
very easy to do.

And I thought you were in Africa ;-)

Thanks,

Richard.


More information about the hal mailing list