On Thu, 31 Mar 2005 14:26:49 -0800
Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote:
> Stephen Hemminger wrote:
> > Other possiblity is adding additional attributes onto the device with sysfs.
> > That is what net/bridge/br_sysfs_if.c does. I'm not claiming it is a pretty
> > kernel programming model, but the user side API is simpler.
> I prefer to stay away from sysfs. procfs may have it's faults, but at
> least in this case, it is quite straight-forward and easily does what
> I need. And procfs is less encumbered by flame wars :)
Are you shying away from sysfs merely for encumberance reasons?
You've dissed Jamal's excellent TC action infrastructure, you're
now dissing sysfs as well which can also solve your problems.
All new interfaces are being done through sysfs, that's simply a
fact of life in the kernel. If you want to buck this trend, you
have to come up with a much better argument than "procfs is more
straight-forward". Well if sysfs isn't as straightforward, suggest
a layer of interfaces that might make it so.