Re: [PATCH -mm] x86 boot : export boot_params via sysfs (forward to Greg)
- From: Dave Jones <davej@xxxxxxxxxx>
- Date: Wed, 12 Dec 2007 14:15:35 -0500
On Wed, Dec 12, 2007 at 09:45:07AM -0800, Greg Kroah-Hartman wrote:
Well, I respectively disagree. sysfs is NOT for exporting various
binary kernel structures to userspace directly. Again, the binary files
in sysfs are for chunks of memory that are PASS-THROUGH from hardware to
userspace, with no kernel intervention at all.
If you really need such a thing, use debugfs, as the only rule for
debugfs is that there is no rules :)
Whilst on the subject, why wasn't /sys/slab done in debugfs ?
The one-value-per-file thing has gone taken to ridiculous extremes there.
Having 3641 sysfs files that most people never use permanently taking up
memory seems to be a massive waste of resources.
Nearly a third of all the sysfs files I have on my system belong to that
subtree, which is just.. wow.
Dave
--
http://www.codemonkey.org.uk
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- Prev by Date: What was the problem with quicklists and x86-64?
- Next by Date: [RESULTS] Port 0x80 I/O speed
- Previous by thread: Re: [PATCH -mm] x86 boot : export boot_params via sysfs (forward to Greg)
- Next by thread: Re: [PATCH -mm] x86 boot : export boot_params via sysfs (forward to Greg)
- Index(es):
Relevant Pages
|