tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lua(4), non-invasive and invasive parts



On Sat, 29 Dec 2012, Marc Balmer wrote:

this is going to upset dyoung i'm sure :) but it seems to me that
if these invasive changes to individual subsystems are needed like
this, and we want them to be optional, then imo they should be on
a per-subsystem basis, not global.  eg something like:

        options LINEDISC_LUA
        options GPIOSIM_LUA

etc.  the ugliness could/should be largely hidden in header files.

The problem remains that modules no nothing about kernel options. Maybe - in an ideal world - there should be no kernel options at all, but only modules... ;)

Perhaps I'm missing something obvious, but why can you not have your line-discipline module simply depend on a lua module? Then you no longer need to know if the kernel "has lua" because it can always "get lua when it needs it".





-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index