linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to disable the button kernel module?
@ 2019-11-14 12:00 Bruno GNUser
  2019-11-15  5:33 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Bruno GNUser @ 2019-11-14 12:00 UTC (permalink / raw)
  To: linux-kernel

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

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. 

Thanks,
Bruno GNUser



--
Sent from: http://linux-kernel.2935.n7.nabble.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to disable the button kernel module?
  2019-11-14 12:00 how to disable the button kernel module? Bruno GNUser
@ 2019-11-15  5:33 ` Randy Dunlap
  2019-11-15  9:11   ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2019-11-15  5:33 UTC (permalink / raw)
  To: Bruno GNUser, linux-kernel, ACPI Devel Mailing List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to disable the button kernel module?
  2019-11-15  5:33 ` Randy Dunlap
@ 2019-11-15  9:11   ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2019-11-15  9:11 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Bruno GNUser, Linux Kernel Mailing List, ACPI Devel Mailing List

On Fri, Nov 15, 2019 at 6:33 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> 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?

https://lore.kernel.org/linux-acpi/CAJZ5v0hy2QpJtnGVvOOggOzTDifD1HYosN9vf0y_=15b+M8v0Q@mail.gmail.com/T/#t

Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-15  9:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14 12:00 how to disable the button kernel module? Bruno GNUser
2019-11-15  5:33 ` Randy Dunlap
2019-11-15  9:11   ` Rafael J. Wysocki

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).