public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roger Luethi <rl@hellgate.ch>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH (URL), RFC] Stackable dmi_blacklist rules
Date: Thu, 23 Aug 2001 16:10:55 +0200	[thread overview]
Message-ID: <20010823161055.A1029@tm.hellgate.ch> (raw)
In-Reply-To: <20010823152200.A853@tm.hellgate.ch> <E15Zua2-0003sM-00@the-village.bc.nu>
In-Reply-To: <E15Zua2-0003sM-00@the-village.bc.nu>; from alan@lxorguk.ukuu.org.uk on Thu, Aug 23, 2001 at 02:31:30PM +0100

> > Currently, we walk the list and throw out bad apples based on full
> > or partial strings we match against what we get from the BIOS.
> > Once a rule matches, the value is immutable.
> 
> Hardly. You can set it back, you can also access the fields to make 
> complex decisions after a match call. 

You'd have to write extra feature_off callback functions, though
(or change the existing ones, as I did), since currently no callback
function allows to reset a value once it was called. They are all
coded like this:

static __init int apm_is_horked(struct dmi_blacklist *d)
{
	if (apm_info.disabled == 0)
	
		apm_info.disabled = 1;
		printk(KERN_INFO "%s machine detected. Disabling APM.\n", d->ident);
	
	return 0;
}

What I was looking for was a solution which allows resetting values
simply by changing the dmi_blacklist.

One can of course argue that we can always add apm_is_not_horked_after_all()
should the need ever arise.

Roger Luethi

      reply	other threads:[~2001-08-23 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23 13:22 [PATCH (URL), RFC] Stackable dmi_blacklist rules Roger Luethi
2001-08-23 13:31 ` Alan Cox
2001-08-23 14:10   ` Roger Luethi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010823161055.A1029@tm.hellgate.ch \
    --to=rl@hellgate.ch \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox