kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Check if specific functionally is built into the kernel
@ 2012-02-26 17:08 Arokux B.
  2012-02-26 17:26 ` Daniel Baluta
  0 siblings, 1 reply; 3+ messages in thread
From: Arokux B. @ 2012-02-26 17:08 UTC (permalink / raw)
  To: kernelnewbies

Dear all,

I have the following problem. Some functionality can be either built
into the kernel or it can be build as a module. In the latter case the
application should load the module.

Is there a general approach to test if specific functionality is built
statically or as a module?

Thanks
Arokux

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

* Check if specific functionally is built into the kernel
  2012-02-26 17:08 Check if specific functionally is built into the kernel Arokux B.
@ 2012-02-26 17:26 ` Daniel Baluta
  2012-02-26 21:13   ` Vlad Dogaru
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2012-02-26 17:26 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Feb 26, 2012 at 7:08 PM, Arokux B. <arokux@gmail.com> wrote:
> Dear all,
>
> I have the following problem. Some functionality can be either built
> into the kernel or it can be build as a module. In the latter case the
> application should load the module.
>
> Is there a general approach to test if specific functionality is built
> statically or as a module?

If available, you can check .config file.
(e.g check if CONFIG_X_OPTION=Y or CONFIG_X_OPTION=m).

thanks,
Daniel.

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

* Check if specific functionally is built into the kernel
  2012-02-26 17:26 ` Daniel Baluta
@ 2012-02-26 21:13   ` Vlad Dogaru
  0 siblings, 0 replies; 3+ messages in thread
From: Vlad Dogaru @ 2012-02-26 21:13 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Feb 26, 2012 at 7:26 PM, Daniel Baluta <daniel.baluta@gmail.com> wrote:
> On Sun, Feb 26, 2012 at 7:08 PM, Arokux B. <arokux@gmail.com> wrote:
>> Dear all,
>>
>> I have the following problem. Some functionality can be either built
>> into the kernel or it can be build as a module. In the latter case the
>> application should load the module.
>>
>> Is there a general approach to test if specific functionality is built
>> statically or as a module?
>
> If available, you can check .config file.
> (e.g check if CONFIG_X_OPTION=Y or CONFIG_X_OPTION=m).

If you don't have your .config (distro prebuilt image), you can check
/proc/config.gz or /boot/ for a config which corresponds to your uname
-r.

Vlad

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

end of thread, other threads:[~2012-02-26 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26 17:08 Check if specific functionally is built into the kernel Arokux B.
2012-02-26 17:26 ` Daniel Baluta
2012-02-26 21:13   ` Vlad Dogaru

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