linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Bruno GNUser <kernel@dantas.airpost.net>,
	linux-kernel@vger.kernel.org,
	ACPI Devel Mailing List <linux-acpi@vger.kernel.org>
Subject: Re: how to disable the button kernel module?
Date: Thu, 14 Nov 2019 21:33:10 -0800	[thread overview]
Message-ID: <0780918b-184e-55a6-a439-06403d3777ff@infradead.org> (raw)
In-Reply-To: <1573732820166-0.post@n7.nabble.com>

On 11/14/19 4:00 AM, Bruno GNUser wrote:
> I realize that /button/ is a kernel built-in and therefore cannot be disabled
> via the /blacklist=<module_name>/ boot parameter. So I thought I'd try
> /initcall_blacklist=<function>/ but I cannot find an obvious module
> initialization function in button.c

In what kernel version if the button driver built-in?
It currently can be built as a loadable module.

The lines
module_driver(acpi_button_driver, acpi_button_register_driver,
	       acpi_button_unregister_driver);
at the end of the source file create an init function named
acpi_button_driver_init.  You could try:
  initcall_blacklist=acpi_button_driver_init


> Please, how would one disable the /button/ module? Either using the
> /initcall_blacklist=foo/ or some other method is fine, as long as it does
> not involve recompiling the kernel. 

Any help from ACPI people?


> Thanks,
> Bruno GNUser
> 
> 
> --
> Sent from: http://linux-kernel.2935.n7.nabble.com/


-- 
~Randy


  reply	other threads:[~2019-11-15  5:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14 12:00 how to disable the button kernel module? Bruno GNUser
2019-11-15  5:33 ` Randy Dunlap [this message]
2019-11-15  9:11   ` Rafael J. Wysocki

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=0780918b-184e-55a6-a439-06403d3777ff@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=kernel@dantas.airpost.net \
    --cc=linux-acpi@vger.kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).