If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:kmod

From BoxMatrix


BoxMatrix >> Shell-Commands >> kmod @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Linux-Command

Goto:   Examples  -  Build-Options  -  GPL-Browser  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

kmod is a program and package to manage Kernel-Modules.

It is a multi-call binary like busybox and is symlinked by:

lsmod       # show loaded modules
modinfo     # show module info

rmmod       # unload modules
insmod      # load modules
modprobe    # load/unload modules and dependencies

depmod      # create dependency databases

In FRITZ!OS it contains a static linked subset of libkmod.so, see the Source below.
The library is only used by udevd and udevadm.

See also the kmod(8) man page and the Kmod-Bin article.

Fw 7.39 help:

root@fritz0:/var/mod/root# kmod -h

kmod - Manage kernel modules: list, load, unload, etc

Usage:
	kmod [options] command [command_options]

Options:
	-V, --version     show version
	-h, --help        show this help

Commands:
  help         Show help message
  list         list currently loaded modules
  static-nodes outputs the static-node information installed with the currently running kernel 

kmod also handles gracefully if called from following symlinks:
  lsmod        compat lsmod command
  rmmod        compat rmmod command
  insmod       compat insmod command
  modinfo      compat modinfo command
  modprobe     compat modprobe command
  depmod       compat depmod command
root@fritz0:/var/mod/root# kmod list -h

Usage: list
root@fritz0:/var/mod/root# kmod static-nodes -h

Usage:
	kmod static-nodes [options]

kmod static-nodes outputs the static-node information of the currently running kernel.

Options:
	-f, --format=FORMAT  choose format to use: see "Formats"
	-o, --output=FILE    write output to file
	-h, --help           show this help

Formats:
	human        (default) a human readable format. Do not parse.
	tmpfiles     the tmpfiles.d(5) format used by systemd-tmpfiles.
	devname      the modules.devname format.

Examples

Fw 7.39 examples:

root@fritz0:/var/mod/root# kmod -V

kmod version 25
-XZ -ZLIB -EXPERIMENTAL
root@fritz0:/var/mod/root# kmod static-nodes 

Module: ppp_generic
	Device node: /dev/ppp
		Type: character device
		Major: 108
		Minor: 0

Build-Options

kmod could be compiled with various options, which could be queried for - fw 7.39:

root@fritz0:/var/mod/root# kmod -V

kmod version 25
-XZ -ZLIB -EXPERIMENTAL

This shows that 3 ./configure options were activated at compile time:

--with-xz               handle Xz-compressed modules [default=disabled]
--with-zlib             handle gzipped modules [default=disabled]
--enable-experimental   enable experimental tools and features. Do not
                        enable it unless you know what you are doing.
                        [default=disabled]

Full options of kmod 25:

me@home:~/kmod$ ./configure --help

'configure' configures kmod 25 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/bin', `/usr/lib' etc.  You can specify
an installation prefix other than `/usr' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/kmod]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-largefile     omit support for large files
  --disable-maintainer-mode  disable make rules and dependencies not useful
			  (and sometimes confusing) to the casual installer
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-silent-rules          less verbose build output (undo: `make V=1')
  --disable-silent-rules         verbose build output (undo: `make V=0')
  --enable-static[=PKGS]  build static libraries [default=no]
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-experimental   enable experimental tools and features. Do not
                          enable it unless you know what you are doing.
                          [default=disabled]
  --disable-tools         disable building tools that provide same
                          functionality as module-init-tools [default=enabled]
  --disable-manpages      disable manpages [default=enabled]
  --disable-test-modules  disable building test modules during make check:
                          cached modules will be used [default=enabled]
  --disable-logging       disable system logging [default=enabled]
  --enable-debug          enable debug messages [default=disabled]
  --enable-python         enable Python libkmod bindings [default=disabled]
  --enable-coverage       enable test coverage [default=disabled]

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).
  --with-rootlibdir=DIR   rootfs directory to install shared libraries
  --with-xz               handle Xz-compressed modules [default=disabled]
  --with-zlib             handle gzipped modules [default=disabled]
  --with-bashcompletiondir=DIR
                          Bash completions directory

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  liblzma_CFLAGS
              C compiler flags for liblzma, overriding pkg-config
  liblzma_LIBS
              linker flags for liblzma, overriding pkg-config
  zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
  zlib_LIBS   linker flags for zlib, overriding pkg-config
  PYTHON      the Python interpreter
  PYTHON_CFLAGS
              C compiler flags for PYTHON, overriding pkg-config
  PYTHON_LIBS linker flags for PYTHON, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <linux-modules@vger.kernel.org>.
kmod home page: <http://git.kernel.org/?p=utils/kernel/kmod/kmod.git>.

GPL-Browser

Daily updated index of all kmod code findings on the GPL-Browser. Last update: 2024-11-15 05:10 GMT.
The Browse column points to the Path containing the respective source code on the gpl.boxmatrix.info service.
The SoC column lists the Chip-Codenames, the Model column lists the nicks of the Box-Models.
The Diff column links the comparison of the AVM Kernel to the pristine original from Kernel.org.
The Download column links the full tarball the respective directory content is extracted from.
The presence of the source does not mean it fits the respective model and architecture. See the Model-Matrix where it's used.

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /usr/bin/kmod | grep -e '\.c$' -e '\.cpp$'

libkmod/libkmod.c
libkmod/libkmod-config.c
libkmod/libkmod-elf.c
libkmod/libkmod-index.c
libkmod/libkmod-module.c
shared/array.c
shared/strbuf.c
tools/depmod.c

This list is icomplete. All tools are compiled in, so surely further files are missing too.

See also the kmod version 25 source.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-11-15 07:53 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Symlinked by cmd insmod (lincmd) 56 7.21 - 8.00 Simple program to insert a module into the Linux Kernel KMod
Symlinked by cmd lsmod (lincmd) 56 7.21 - 8.00 Show the status of loaded Linux Kernel-Modules KMod
Symlinked by cmd modprobe (lincmd) 56 7.21 - 8.00 Add and remove modules from the Linux Kernel KMod
Symlinked by cmd rmmod (lincmd) 56 7.21 - 8.00 Simple program to remove a module from the Linux Kernel KMod
Depends on lib ld.so 24 7.39 - 8.00 Dynamic linker / loader Linux
Depends on lib libc.so 56 7.21 - 8.00 Standard C library Linux
Depends on lib libz.so 2 7.21 - 7.24 Zlib compressor / decompressor Linux
7 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-11-15 05:54 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 4040 7.39 - 8.00 /usr/bin 106k - 114k
FRITZ!Box 4050 7.58 - 7.90 /usr/bin 105k - 113k
FRITZ!Box 4060 7.39 - 7.90 /usr/bin 105k - 113k
FRITZ!Box 5530 Fiber (boot) 7.39 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 5530 Fiber (main) 7.21 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 5590 Fiber (boot) 7.39 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 5590 Fiber (main) 7.39 - 8.00 /usr/bin 105k - 113k
FRITZ!Box 5590 Fiber (prx) 7.29 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 5690 Pro (main) 7.62 - 7.90 /usr/bin 109k - 113k
FRITZ!Box 5690 Pro (rtl) 7.62 - 7.90 /usr/bin 143k - 147k
FRITZ!Box 6490 Cable (arm) 7.39 - 7.51 /usr/bin 94.7k
FRITZ!Box 6490 Cable (atom) 7.39 - 7.51 /usr/bin 117k
FRITZ!Box 6590 Cable (arm) 7.39 - 7.57 /usr/bin 94.7k
FRITZ!Box 6590 Cable (atom) 7.39 - 7.51 /usr/bin 117k
FRITZ!Box 6591 Cable (arm) 7.39 - 8.00 /usr/bin 98.0k - 118k
FRITZ!Box 6591 Cable (atom) 7.39 - 8.00 /usr/bin 126k - 130k
FRITZ!Box 6660 Cable (arm) 7.39 - 8.00 /usr/bin 98.0k - 118k
FRITZ!Box 6660 Cable (atom) 7.39 - 8.00 /usr/bin 126k - 130k
FRITZ!Box 6670 Cable (arm) 7.61 - 7.90 /usr/bin 102k - 118k
FRITZ!Box 6670 Cable (atom) 7.61 - 7.90 /usr/bin 130k
FRITZ!Box 6690 Cable (arm) 7.39 - 7.90 /usr/bin 98.0k - 118k
FRITZ!Box 6690 Cable (atom) 7.39 - 7.90 /usr/bin 126k - 130k
FRITZ!Box 6820 LTE v1 (main) 7.51 /usr/bin 135k
FRITZ!Box 6820 LTE v2 (main) 7.51 /usr/bin 135k
FRITZ!Box 6820 LTE v3 (main) 7.51 - 7.57 /usr/bin 135k
FRITZ!Box 6850 LTE 7.26 - 7.90 /usr/bin 106k - 135k
FRITZ!Box 6850 5G 7.39 - 7.90 /usr/bin 106k - 114k
FRITZ!Box 6890 LTE (main) 7.24 - 7.57 /usr/bin 135k
FRITZ!Box 6890 LTE v1 (main) 7.24 - 7.57 /usr/bin 135k
FRITZ!Box 6890 LTE v2 (main) 7.24 - 7.57 /usr/bin 135k
FRITZ!Box 7490 (main) 7.51 /usr/bin 135k
FRITZ!Box 7490 (scrpn) 7.51 /usr/bin 135k
FRITZ!Box 7510 7.30 - 8.00 /usr/bin 105k - 113k
FRITZ!Box 7520 7.39 - 8.00 /usr/bin 106k - 114k
FRITZ!Box 7520 v2 (main) 7.39 - 8.00 /usr/bin 106k - 114k
FRITZ!Box 7530 7.39 - 8.00 /usr/bin 106k - 114k
FRITZ!Box 7530 AX 7.39 - 8.00 /usr/bin 106k - 118k
FRITZ!Box 7560 (main) 7.24 - 7.30 /usr/bin 135k
FRITZ!Box 7580 (main) 7.24 - 7.30 /usr/bin 135k
FRITZ!Box 7583 (main) 7.27 - 7.59 /usr/bin 135k
FRITZ!Box 7583 VDSL (main) 7.27 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 7590 (main) 7.24 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 7590 AX (main) 7.24 - 8.00 /usr/bin 135k - 143k
FRITZ!Box 7690 7.61 - 7.90 /usr/bin 109k - 113k
FRITZ!Smart Gateway 7.52 - 7.63 /usr/bin 105k
FRITZ!Repeater 600 7.57 - 7.58 /usr/bin 135k
FRITZ!Repeater 600 v2 7.57 - 7.58 /usr/bin 135k
FRITZ!Repeater 1200 7.39 - 7.58 /usr/bin 106k
FRITZ!Repeater 1200 AX 7.30 - 7.58 /usr/bin 105k
FRITZ!Repeater 2400 7.39 - 7.58 /usr/bin 135k
FRITZ!Repeater 3000 7.39 - 7.58 /usr/bin 106k
FRITZ!Repeater 3000 AX 7.41 - 7.58 /usr/bin 105k
FRITZ!Repeater 6000 7.39 - 7.58 /usr/bin 105k
FRITZ!Powerline 1240 AX 7.57 - 7.58 /usr/bin 105k
FRITZ!Powerline 1260E 7.50 - 7.58 /usr/bin 106k
FRITZ!Powerline 1260 7.50 - 7.58 /usr/bin 106k
56 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-11-15 07:53 GMT.

Firmware Symbol
7.21 - 8.00 kmod_config_iter_free_iter
7.21 - 8.00 kmod_config_iter_get_key
7.21 - 8.00 kmod_config_iter_get_value
7.21 - 8.00 kmod_config_iter_next
7.21 - 8.00 kmod_dump_index
7.21 - 8.00 kmod_get_dirname
7.21 - 8.00 kmod_get_log_priority
7.21 - 8.00 kmod_list_last
7.21 - 8.00 kmod_list_next
7.21 - 8.00 kmod_list_prev
7.21 - 8.00 kmod_load_resources
7.21 - 8.00 kmod_module_apply_filter
7.21 - 8.00 kmod_module_dependency_symbol_get_bind
7.21 - 8.00 kmod_module_dependency_symbol_get_crc
7.21 - 8.00 kmod_module_dependency_symbol_get_symbol
7.21 - 8.00 kmod_module_dependency_symbols_free_list
7.21 - 8.00 kmod_module_get_dependencies
7.21 - 8.00 kmod_module_get_dependency_symbols
7.21 - 8.00 kmod_module_get_holders
7.21 - 8.00 kmod_module_get_info
7.21 - 8.00 kmod_module_get_initstate
7.21 - 8.00 kmod_module_get_install_commands
7.21 - 8.00 kmod_module_get_module
7.21 - 8.00 kmod_module_get_name
7.21 - 8.00 kmod_module_get_options
7.21 - 8.00 kmod_module_get_path
7.21 - 8.00 kmod_module_get_refcnt
7.21 - 8.00 kmod_module_get_remove_commands
7.21 - 8.00 kmod_module_get_size
7.21 - 8.00 kmod_module_get_softdeps
7.21 - 8.00 kmod_module_get_symbols
7.21 - 8.00 kmod_module_get_versions
7.21 - 8.00 kmod_module_info_free_list
7.21 - 8.00 kmod_module_info_get_key
7.21 - 8.00 kmod_module_info_get_value
7.21 - 8.00 kmod_module_insert_module
7.21 - 8.00 kmod_module_new_from_loaded
7.21 - 8.00 kmod_module_new_from_lookup
7.21 - 8.00 kmod_module_new_from_name
7.90 - 8.00 kmod_module_new_from_name_lookup
7.21 - 8.00 kmod_module_new_from_path
7.21 - 8.00 kmod_module_probe_insert_module
7.21 - 8.00 kmod_module_ref
7.21 - 8.00 kmod_module_remove_module
7.21 - 8.00 kmod_module_symbol_get_crc
7.21 - 8.00 kmod_module_symbol_get_symbol
7.21 - 8.00 kmod_module_symbols_free_list
7.21 - 8.00 kmod_module_unref
7.21 - 8.00 kmod_module_unref_list
7.21 - 8.00 kmod_module_version_get_crc
7.21 - 8.00 kmod_module_version_get_symbol
7.21 - 8.00 kmod_module_versions_free_list
7.21 - 8.00 kmod_new
7.21 - 8.00 kmod_ref
7.21 - 8.00 kmod_set_log_fn
7.21 - 8.00 kmod_set_log_priority
7.21 - 8.00 kmod_unload_resources
7.21 - 8.00 kmod_unref
58 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

k