Differences between version 3 and previous revision of ModuleNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Wednesday, January 28, 2009 10:36:14 am | by AristotlePagaltzis | Revert |
Older page: | version 2 | Last edited on Thursday, August 9, 2007 12:33:09 am | by BenStaz | Revert |
@@ -55,57 +55,17 @@
install eth1394 /bin/true
install sbp2 /bin/true
</pre>
-!!What on earth does that kernel module do?
+!! What on earth does that kernel module do?
-Try this command
. It parses the Kconfig files (displayed when using ''
make menuconfig''
) found
in your
kernel source directory
.
-
-*module="<module name>"; find -name 'Kconfig' -type f -exec awk 'BEGIN{RS="\nconfig|\nsource"}/'"$module"'/' {} \;
-
-Example of Use:
+Try this script
. It parses the Kconfig files (displayed when using <tt>
make menuconfig</tt>
) in the
kernel source tree
.
<verbatim>
-staz@tokra:
/usr
/src/linux-source-2.6.20$ module="usbcore";
find -name 'Kconfig' -type f -exec awk 'BEGIN{RS="\nconfig|\nsource"}/'"$module
"'/' {} \;
- USB
- tristate "Support for Host-side USB"
- depends on USB_ARCH_HAS_HCD
- ---help---
- Universal Serial Bus (USB) is a specification for a serial bus
- subsystem which offers higher speeds and more features than the
- traditional PC serial port. The bus supplies power to peripherals
- and allows for hot swapping. Up to 127 USB peripherals can be
- connected to a single USB host in a tree structure.
-
- The USB host is the root of the tree, the peripherals are the
- leaves and the inner nodes are special USB devices called hubs.
- Most PCs now have USB host ports, used to connect peripherals
- such as scanners, keyboards, mice, modems, cameras, disks,
- flash memory, network links, and printers to the PC.
-
- Say Y here if your computer has a host-side USB port and you want
- to use USB devices. You then need to say Y to at least one of the
- Host Controller Driver (HCD) options below. Choose a USB 1.1
- controller, such as "UHCI HCD support" or "OHCI HCD support",
- and "EHCI HCD (USB 2.) support" except for older systems that
- do not have USB 2.0 support. It doesn't normally hurt to select
- them all if you are not certain.
-
- If your system has a device-side USB port, used in the peripheral
- side of the USB protocol, see the "USB Gadget" framework instead.
-
- After choosing your HCD, then select drivers for the USB peripherals
- you'll be using. You may want to check out the information provided
- in <file:Documentation/usb/> and especially the links given in
- <file:Documentation/usb/usb-help.txt>.
-
- To compile this driver as a module, choose M here: the
- module will be called usbcore.
+#!
/bin
/sh
+
find -name 'Kconfig' -type f -exec awk 'BEGIN{RS="\nconfig|\nsource"} /'"$1
"'/' {} \;
</verbatim>
-It's certainly not perfect (awk expression could do with a bit of tweaking)
and unfortunately some
of the Kconfig menu items do not specify what
the name
of the kernel module is
.
-
-
+Save it as <tt>kconfig-info</tt>
and invoke it from the top
of the kernel source tree along
the lines
of "<tt>kconfig-info usbcore</tt>"
.
----
-
CategoryKernel