Subject: Re: Documentation for autoconf system
To: None <jkunz@unixag-kl.fh-kl.de>
From: Ben Harris <bjh21@netbsd.org>
List: tech-kern
Date: 04/22/2001 00:27:21
On Sun, 22 Apr 2001 jkunz@unixag-kl.fh-kl.de wrote:

> > The struct cfdata is the internal representation of a line of a kernel
> > config file (like "foo* at bar? slot ?").
> Ahhhmm. And what can I do with this?

You can read from it.

> What is the purpose of passing
> this struct to the match routine?

One possible use is to get at the cf_flags element, which corresponds to a
"flags 0x1234" clause in a config file.  You might want to do this if you
had some of the flags controlling the precise behaviour of the match
routine.  This is likely to be pretty specialised.  Most of the time, the
only argument the match routine looks at is the third one.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>