Jaunty config changes: Reduce CONFIG_LEGACY_PTY_COUNT to 0

Scott James Remnant scott at canonical.com
Mon Dec 22 17:28:09 UTC 2008


On Mon, 2008-12-22 at 17:16 +0000, Andy Whitcroft wrote:

> I am not convinced that if we set CONFIG_LEGACY_PTY_COUNT that the user
> will be able to use these devices at all.  In the init function we check
> if this value is <= 0 and if so we abort initialising the driver:
> 
> static int legacy_count = CONFIG_LEGACY_PTY_COUNT;
> [...]
> static void __init legacy_pty_init(void)
> {
>         if (legacy_count <= 0)
>                 return;
> [...]
> 
You snipped the all-important line right below the first one:

module_param(legacy_count, int, 0);

This is a parameter that has CONFIG_LEGACY_PTY_COUNT as its *default*,
not hard-coded value.

You can boot with pty.legacy_count=... and that will change the value of
legacy_count, so when the driver init()s, it will be > 0


> What about leaving this at 256, but simply moving it to be a module (=m)
> instead.  I would not expect it to autoload so people who needed these
> things could modprobe it, or add it to /etc/modules, but otherwise we
> arn't using it so why have it in the kernel?
> 
Err, this is the entire pty subsystem - we need that ;)

Scott
-- 
Scott James Remnant
scott at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20081222/80436b25/attachment.sig>


More information about the kernel-team mailing list