Re: [PATCH] CONSOLE_LP_STRICT Kconfig option

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

 



On Wed, 12 Apr 2006 20:53:28 +0200 Luca Falavigna wrote:

> 2006/4/12, Randy.Dunlap <[email protected]>:
> > On Wed, 15 Feb 2006 10:03:30 +0100 Luca Falavigna wrote:
> >
> > > Oops, I noticed I sent twice my email. Sorry.
> > >
> > > 14 Feb 2006 15:59:56 +0100, Andi Kleen <[email protected]>:
> > > > This shouldn't be a CONFIG. This should be a runtime option.
> > > > It's ridiculous to have to recompile your kernel just to fix some
> > > > problem with your printer.
> > > >
> > > > e.g. sysctl, ioctl, sysfs entry, module parameter. Whatever is en
> > > > vogue these days. Easiest would be probably a module_param().
> > >
> > > This feature only gets involved when passing console=lp0 parameter to
> > > the bootloader. I never tried to load a new system console while
> > > system was running so I'm not sure if it behaves correctly. If it
> > > does, I will modify this patch following your advices.
> >
> > Andi's suggestion seems fine to me:  use a module_param() for
> > CONSOLE_LP_STRICT instead of a hidden build-time (non-Kconfig)
> > option.  Are you interested in making this change?
> >
> > ---
> 
> I can give it a try. I'm not sure if this can be done when system is loaded.

I think that if you make it a module_param() and use (root-) writeable
permissions on it, it's just a variable that can be changed after the
driver is loaded and running.

Andi, did you want just a boot-time option or a run-time (changeable) option?

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux