Re: _KERNEL_OPT and 0x6e074def

Paul Goyette <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Tue, 19 Dec 2023, Edgar Fuß wrote:

> What's the point of #include'ing opt_foobar.h only if _KERNEL_OPT is defined
> and what's magic about 0x6e074def?

The opt_* files only exist when building a kernel.  They do not exist
when building loadable modules.  In the module case, any options needed
must be defined in the Makefile; preferably no options are needed.

I have no clue about the magic number.


+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | [email protected]    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | [email protected]  |
| & Network Engineer  |                          | [email protected] |
+---------------------+--------------------------+----------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.