Re: [PATCH -mm] x86 boot : export boot_params via sysfs (forward to Greg)

2007-12-12 Thread Greg KH
On Wed, Dec 12, 2007 at 02:15:35PM -0500, Dave Jones wrote: > 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 ar

Re: [PATCH -mm] x86 boot : export boot_params via sysfs (forward to Greg)

2007-12-12 Thread Dave Jones
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 > users

Re: [PATCH -mm] x86 boot : export boot_params via sysfs (forward to Greg)

2007-12-12 Thread Greg KH
On Wed, Dec 12, 2007 at 04:11:19PM +0800, Huang, Ying wrote: > On Tue, 2007-12-11 at 23:35 -0800, Greg KH wrote: > > > +static struct attribute *boot_params_attrs[] = { > > > + &boot_params_version_attr.attr, > > > + NULL > > > +}; > > > + > > > +static struct attribute_group boot_params_attr_group

Re: [PATCH -mm] x86 boot : export boot_params via sysfs

2007-12-11 Thread Greg KH
On Wed, Dec 12, 2007 at 12:42:48PM +0800, Dave Young wrote: > On Dec 12, 2007 10:40 AM, Andrew Morton <[EMAIL PROTECTED]> wrote: > > On Tue, 11 Dec 2007 16:49:09 + "Huang, Ying" <[EMAIL PROTECTED]> wrote: > > > > > This patch export the boot parameters via sysfs. This can be used for > > > debu

Re: [PATCH -mm] x86 boot : export boot_params via sysfs

2007-12-11 Thread Greg KH
On Wed, Dec 12, 2007 at 12:42:48PM +0800, Dave Young wrote: > On Dec 12, 2007 10:40 AM, Andrew Morton <[EMAIL PROTECTED]> wrote: > > On Tue, 11 Dec 2007 16:49:09 + "Huang, Ying" <[EMAIL PROTECTED]> wrote: > > > > > This patch export the boot parameters via sysfs. This can be used for > > > debu

Re: [PATCH -mm] x86 boot : export boot_params via sysfs

2007-12-11 Thread Dave Young
On Dec 12, 2007 10:40 AM, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Tue, 11 Dec 2007 16:49:09 + "Huang, Ying" <[EMAIL PROTECTED]> wrote: > > > This patch export the boot parameters via sysfs. This can be used for > > debugging and kexec. > > > > The files added are as follow: > > > > /sys/k

Re: [PATCH -mm] x86 boot : export boot_params via sysfs

2007-12-11 Thread Andrew Morton
On Tue, 11 Dec 2007 16:49:09 + "Huang, Ying" <[EMAIL PROTECTED]> wrote: > This patch export the boot parameters via sysfs. This can be used for > debugging and kexec. > > The files added are as follow: > > /sys/kernel/boot_params/data : binary file for struct boot_params > /sys/kernel/boot_

[PATCH -mm] x86 boot : export boot_params via sysfs

2007-12-11 Thread Huang, Ying
This patch export the boot parameters via sysfs. This can be used for debugging and kexec. The files added are as follow: /sys/kernel/boot_params/data: binary file for struct boot_params /sys/kernel/boot_params/version : boot protocol version This patch is based on 2.6.24-rc4-mm1 and has bee