Re: EV-64260-BP & GT64260 bi_recs

2 messages, 2 authors, 2002-03-21 · open the first message on its own page

Re: EV-64260-BP & GT64260 bi_recs

From: Murray Jensen <hidden>
Date: 2002-03-21 01:11:05

On Wed, 20 Mar 2002 13:51:01 -0500, Dan Malek [off-list ref] writes:
If we want to be passing arbitrary information into the kernel
for anyone to use, perhaps we should consider using the standard
argc, argv, envp, like other architectures.  Just pass ASCII
strings into the kernel as you would any other program, and have
a function that can search for and parse 'param=value' strings.
I like this idea (a lot), but I'm not sure you were serious. The problem with
this method starts when you have a lot of information to pass - it gets unwieldy
and becomes almost as unreadable as a hex dump (anyone ever had to read the
output from a make of the gcc compiler to decipher what went wrong? with all
those command line options passed to each invocation of the compiler, the real
information gets lost).

I don't think the method matters a lot, as long as there is only one way to do
it (that is unlimited, flexible, extensible), not the three different methods
we have today (command line, bd_t struct and bi_recs).

Oh, and for the record - I vote for b). The stuff posted by benh is a very
good start for this - I really like the idea of bi_recs within bi_recs - this
gives you effectively unlimited flexibility, but handlers at the top level can
just skip/pass the entire record without worrying about its content. Cheers!
								Murray...
--
Murray Jensen, CSIRO Manufacturing Sci & Tech,         Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia.         Fax: +61 3 9662 7853
Internet: Murray.Jensen@csiro.au

Hymod project: http://www.msa.cmst.csiro.au/projects/Hymod/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: EV-64260-BP & GT64260 bi_recs

From: Dan Malek <hidden>
Date: 2002-03-21 06:50:21

Murray Jensen wrote:
I like this idea (a lot), but I'm not sure you were serious.
I'm always serious :-).
.... The problem with
this method starts when you have a lot of information to pass
I'm going to (constantly :-) argue that if you are passing lots of information
then something isn't designed correctly.  It's one thing to be passing a few
hardware hints or small configuration values, but I think it's quite wrong
to design a bunch of dynamic software that requires a small data base to be
passed into to the kernel.  Please don't be confused by this comment and start
aruging OF device trees on Macs.  The OF tree is really just a bunch of small
configuration items that allows lots of generic software to run on a variety of
Mac platforms.


	-- Dan


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help