/linux/kernel/module/ |
H A D | Kconfig | 2 menuconfig MODULES config 4 modules 7 Kernel modules are small pieces of compiled code which can 11 many parts of the kernel can be built as modules (by 18 modules_install" to put the modules under /lib/modules/ 24 if MODULES 34 modules. You don't need these options on production systems. 44 For example, size of all modules, average size, text size, a list 45 of failed modules and the size for each of those. For failed 46 modules we keep track of modules which failed due to either the [all …]
|
H A D | stats.c | 64 * DOC: dup_failed_modules - tracks duplicate failed modules 66 * Linked list of modules which failed to be loaded because an already existing 79 * All virtual memory allocated to these failed modules will be freed with 82 * To help with this the dup_failed_modules allows us to track modules which 116 * * total_mod_size: total bytes ever used by all modules we've dealt with on 130 * promote it to be processed to be added to our @modules linked list. These 136 * add_unformed_module() will add a module to our &modules list and 137 * subsequent loads of modules with the same name will error out at the 140 * on layout_and_allocate() for modules already being processed. These 141 * duplicate failed modules are non-fatal, however they typically are [all …]
|
/linux/Documentation/admin-guide/ |
H A D | module-signing.rst | 10 .. - Manually signing modules. 11 .. - Signed modules and stripping. 12 .. - Loading signed modules. 13 .. - Non-valid signatures and unsigned modules. 21 The kernel module signing facility cryptographically signs modules during 23 allows increased kernel security by disallowing the loading of unsigned modules 24 or modules signed with an invalid key. Module signing increases security by 49 (1) :menuselection:`Require modules to be validly signed` 55 If this is off (ie. "permissive"), then modules for which the key is not 56 available and modules that are unsigned are permitted, but the kernel will [all …]
|
/linux/scripts/package/ |
H A D | kernel.spec | 41 Summary: Development package for building kernel modules to match the %{version} kernel 45 This package provides kernel headers and makefiles sufficient to build modules 58 mkdir -p %{buildroot}/lib/modules/%{KERNELRELEASE} 59 cp $(%{make} %{makeflags} -s image_name) %{buildroot}/lib/modules/%{KERNELRELEASE}/vmlinuz 63 cp System.map %{buildroot}/lib/modules/%{KERNELRELEASE} 64 cp .config %{buildroot}/lib/modules/%{KERNELRELEASE}/config 66 %{make} %{makeflags} INSTALL_DTBS_PATH=%{buildroot}/lib/modules/%{KERNELRELEASE}/dtb dtbs_install 68 ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEASE}/build 74 echo "/lib/modules/%{KERNELRELEASE}" 78 echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}" [all …]
|
H A D | builddeb | 37 rm -f "${pdir}/lib/modules/${KERNELRELEASE}/build" 41 mkdir -p "${pdir}/usr/lib/uml/modules" 42 mv "${pdir}/lib/modules/${KERNELRELEASE}" "${pdir}/usr/lib/uml/modules/${KERNELRELEASE}" 44 cp System.map "${pdir}/usr/lib/uml/modules/${KERNELRELEASE}/System.map" 103 # Parse modules.order directly because 'make modules_install' may sign, 104 # compress modules, and then run unneeded depmod. 108 dbg="${pdir}/usr/lib/debug/lib/modules/${KERNELRELEASE}/kernel/${mod}" 115 done < modules.order 121 mkdir -p ${pdir}/usr/lib/debug/lib/modules/${KERNELRELEASE}/ 122 cp vmlinux ${pdir}/usr/lib/debug/lib/modules/${KERNELRELEASE}/ [all …]
|
/linux/Documentation/kbuild/ |
H A D | modules.rst | 2 Building External Modules 10 "kbuild" is the build system used by the Linux kernel. Modules must use 12 to pick up the right flags to the compiler. Functionality for building modules 14 either is similar, and all modules are initially developed and built 18 in building out-of-tree (or "external") modules. The author of an 25 How to Build External Modules 28 To build external modules, you must have a prebuilt kernel available 30 Also, the kernel must have been built with modules enabled. If you are 37 building external modules. 55 $ make -C /lib/modules/`uname -r`/build M=$PWD [all …]
|
H A D | kbuild.rst | 9 modules.order 11 This file records the order in which modules appear in Makefiles. This 13 multiple modules. 15 modules.builtin 17 This file lists all modules that are built into the kernel. This is used 20 modules.builtin.modinfo 22 This file contains modinfo from all modules that are built into the kernel. 25 modules.builtin.ranges 27 This file contains address offset ranges (per ELF section) for all modules 42 Additional options to the assembler (for built-in and modules). [all …]
|
/linux/scripts/ |
H A D | Makefile.modinst | 3 # Installing modules 19 install-$(CONFIG_MODULES) += $(addprefix $(MODLIB)/, build modules.order) 27 $(MODLIB)/modules.order: modules.order FORCE 33 # Install modules.builtin(.modinfo,.ranges) even when CONFIG_MODULES is disabled. 34 install-y += $(addprefix $(MODLIB)/, modules.builtin modules.builtin.modinfo) 36 install-$(CONFIG_BUILTIN_MODULE_RANGES) += $(MODLIB)/modules.builtin.ranges 38 $(addprefix $(MODLIB)/, modules.builtin modules.builtin.modinfo modules.builtin.ranges): $(MODLIB)/… 43 modules := $(call read-file, modules.order) 62 modules := $(patsubst %.o, $(dst)/%.ko$(suffix-y), $(modules)) 63 install-$(CONFIG_MODULES) += $(modules) [all …]
|
H A D | Makefile.modpost | 11 # d) modules.order, which lists all the modules 14 # 1) Find all modules listed in modules.order 32 # Step 4 is solely used to allow module versioning in external modules, 49 $(if $(KBUILD_NSDEPS),-d modules.nsdeps) \ 56 # 'make -i -k' ignores compile errors, and builds as many modules as possible. 61 # Read out modules.order to pass in modpost. 64 modpost-args += -T modules.order 65 modpost-deps += modules.order 104 output-symdump := modules-only.symvers 113 # set src + obj - they may be used in the modules's Makefile [all …]
|
H A D | Makefile.vmlinux_o | 4 __default: vmlinux.o modules.builtin.modinfo modules.builtin 74 targets += modules.builtin.modinfo 75 modules.builtin.modinfo: vmlinux.o FORCE 81 # The second line aids cases where multiple modules share the same object. 89 targets += modules.builtin 90 modules.builtin: modules.builtin.modinfo FORCE
|
H A D | Makefile.modfinal | 13 # find all modules listed in modules.order 14 modules := $(call read-file, modules.order) 16 __modfinal: $(modules:%.o=%.ko) 61 targets += $(modules:%.o=%.ko) $(modules:%.o=%.mod.o) .module-common.o
|
/linux/samples/ |
H A D | Kconfig | 14 tristate "Build trace_events examples -- loadable modules only" 20 tristate "Build custom trace event example -- loadable modules only" 67 different kobject sample modules showing how to use kobjects, 73 tristate "Build kprobes examples -- loadable modules only" 76 This build several kprobes example modules. 79 tristate "Build kretprobes example -- loadable modules only" 87 This builds kernel hardware breakpoint example modules. 90 tristate "Build fprobe examples -- loadable modules only" 97 tristate "Build kfifo examples -- loadable modules only" 101 different kfifo sample modules showing how to use the [all …]
|
/linux/drivers/gpu/drm/amd/display/ |
H A D | Makefile | 47 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/inc 48 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/freesync 49 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/color 50 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/info_packet 51 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/power 54 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/modules/hdcp 59 DAL_LIBS = amdgpu_dm dc modules/freesync modules/color modules/info_packet modules/power dmub/src 61 DAL_LIBS += modules/hdcp
|
/linux/Documentation/security/ |
H A D | lsm.rst | 2 Linux Security Modules: General Security Hooks for Linux 33 framework could then be used by loadable kernel modules to implement any 37 The Linux Security Modules (LSM) project was started by WireX to develop 50 security modules. In particular, the LSM framework is primarily focused 51 on supporting access control modules, although future development is 54 the infrastructure to support security modules. The LSM framework is 63 It also adds functions for registering security modules. 65 of security modules that are active on the system. 69 the framework or by the individual security modules that use it. 87 ``include/linux/shm.h`` as appropriate) to allow the security modules to [all …]
|
/linux/Documentation/admin-guide/LSM/ |
H A D | index.rst | 8 loadable kernel modules. Instead, they are selectable at build-time via 20 The Linux capabilities modules will always be included. This may be 21 followed by any number of "minor" modules and at most one "major" module. 25 A list of the active security modules can be found by reading 29 be first, followed by any "minor" modules (e.g. Yama) and then 32 Process attributes associated with "major" security modules should 37 in ``/proc/.../attr`` remain as legacy interfaces for modules that provide
|
/linux/Documentation/driver-api/media/drivers/ |
H A D | pvrusb2.rst | 63 To build these modules essentially amounts to just running "Make", 115 modules should have any business using this header. All external 130 pvrusb2-i2c-chips-\*.c - These modules implement the glue logic to 131 tie together and configure various I2C modules as they attach to 136 V4L, where we might encounter other possibly "challenging" modules 137 from ivtv or older kernel snapshots (or even the support modules 141 compatible commands to the I2C modules. It is here where state 143 commands that are in turn send to the various I2C modules. 146 compatible commands to the I2C modules. It is here where state 148 commands that are in turn send to the various I2C modules. [all …]
|
/linux/drivers/iio/common/ |
H A D | Makefile | 3 # Makefile for the IIO common modules. 4 # Common modules contains modules, which can be shared among multiple 5 # IIO modules. For example if the trigger processing is common for 6 # multiple IIO modules then this can be moved to a common module
|
/linux/lib/ |
H A D | Kconfig | 145 modules require CRC-CCITT functions, but a module built outside 146 the kernel tree does. Such modules that use library CRC-CCITT 153 modules require CRC16 functions, but a module built outside 154 the kernel tree does. Such modules that use library CRC16 179 modules require CRC ITU-T V.41 functions, but a module built outside 180 the kernel tree does. Such modules that use library CRC ITU-T V.41 189 modules require CRC32/CRC32c functions, but a module built outside 190 the kernel tree does. Such modules that use library CRC32/CRC32c 253 modules require CRC64 functions, but a module built outside 254 the kernel tree does. Such modules that use library CRC64 [all …]
|
/linux/tools/testing/selftests/livepatch/ |
H A D | README | 7 The test suite loads and unloads several test kernel modules to verify 26 The command above will compile all test modules and test programs, making them 32 Test kernel modules are built before running the livepatch selftests. The 33 modules are located under test_modules directory, and are built as out-of-tree 34 modules. This is specially useful since the same sources can be built and 36 compatible. The modules will be loaded by the test scripts using insmod.
|
/linux/scripts/gdb/linux/ |
H A D | modules.py | 23 return utils.gdb_eval_or_none("modules") is not None 27 modules = utils.gdb_eval_or_none("modules") 28 if modules is None: 33 for module in lists.list_for_each_entry(modules, module_ptr_type, "list"): 47 $lx_module("MODULE"): Given the name MODULE, iterate over all loaded modules 66 """List currently loaded modules."""
|
/linux/ |
H A D | .gitignore | 56 modules.order 62 /modules-only.symvers 71 /modules.builtin 72 /modules.builtin.modinfo 73 /modules.builtin.ranges 74 /modules.nsdeps
|
H A D | Makefile | 142 $(error building multiple external modules is not supported)) 195 # source directory or kernel build directory), external modules 686 @if [ -f $(srcroot)/modules.order ]; then \ 741 # but instead __all depend on modules 746 __all: modules 757 # If we have only "make modules", don't compile built-in objects. 758 ifeq ($(MAKECMDGOALS),modules) 762 # If we have "make <whatever> modules", compile modules 764 # Just "make" or "make all" shall build modules as well 766 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),) [all …]
|
/linux/Documentation/i2c/busses/ |
H A D | i2c-taos-evm.rst | 7 This is a driver for the evaluation modules for TAOS I2C/SMBus chips. 8 The modules include an SMBus master with limited capabilities, which can 9 be controlled over the serial port. Virtually all evaluation modules 38 modules: 48 practice, as these modules are meant for evaluation and testing only.
|
/linux/Documentation/userspace-api/ |
H A D | lsm.rst | 6 Linux Security Modules 12 Linux security modules (LSM) provide a mechanism to implement 15 The various security modules may support any of these attributes: 20 This is supported by the SELinux, Smack and AppArmor security modules. 27 This is supported by the SELinux and AppArmor security modules. 43 This is supported by the SELinux and AppArmor security modules.
|
/linux/drivers/mfd/ |
H A D | janz-cmodio.c | 26 /* Maximum number of MODULbus modules on a CMOD-IO carrier board */ 31 static char *modules[CMODIO_MAX_MODULES] = { variable 35 module_param_array(modules, charp, &num_modules, S_IRUGO); 36 MODULE_PARM_DESC(modules, "MODULbus modules attached to the carrier board"); 126 name = modules[i]; in cmodio_probe_submodules() 135 /* print an error message if no modules were probed */ in cmodio_probe_submodules() 137 dev_err(&priv->pdev->dev, "no MODULbus modules specified, " in cmodio_probe_submodules() 138 "please set the ``modules'' kernel " in cmodio_probe_submodules()
|