Gentoo Archives: gentoo-dev

From: Greg KH <gregkh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Stability of /sys api
Date: Tue, 15 May 2012 01:18:08
In Reply to: Re: [gentoo-dev] Stability of /sys api by Mike Frysinger
On Mon, May 14, 2012 at 12:09:23PM -0400, Mike Frysinger wrote:
> On Monday 14 May 2012 03:53:53 Walter Dnes wrote: > > My question... is this API stable or deprecated? I.e. can I count on > > it being around for a while? I figure this question is a developer type > > question rather than ordinary user type. > > if userspace is relying on stuff in /sys, then it's part of the ABI
Yes, but note, you are looking at the wrong thing, what you are reading isn't really what you think it means... And to rely on sysfs, you have to be very careful, you can not rely on position, or files, always being where you saw them yesterday as device ids, topologies, and other stuff, change all the time. greg k-h