1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Library configuration 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 64370aa4aSLai Jiangshanconfig BINARY_PRINTF 74370aa4aSLai Jiangshan def_bool n 84370aa4aSLai Jiangshan 91da177e4SLinus Torvaldsmenu "Library routines" 101da177e4SLinus Torvalds 11f5e70d0fSDavid Woodhouseconfig RAID6_PQ 12f5e70d0fSDavid Woodhouse tristate 13f5e70d0fSDavid Woodhouse 14be85f93aSDaniel Verkampconfig RAID6_PQ_BENCHMARK 15be85f93aSDaniel Verkamp bool "Automatically choose fastest RAID6 PQ functions" 16be85f93aSDaniel Verkamp depends on RAID6_PQ 17be85f93aSDaniel Verkamp default y 18be85f93aSDaniel Verkamp help 19be85f93aSDaniel Verkamp Benchmark all available RAID6 PQ functions on init and choose the 20be85f93aSDaniel Verkamp fastest one. 21be85f93aSDaniel Verkamp 22d2218d4eSMatti Vaittinenconfig LINEAR_RANGES 23d2218d4eSMatti Vaittinen tristate 24d2218d4eSMatti Vaittinen 25554aae35SVladimir Olteanconfig PACKING 26554aae35SVladimir Oltean bool "Generic bitfield packing and unpacking" 271280d4b7SUladzislau Koshchanka select BITREVERSE 28554aae35SVladimir Oltean default n 29554aae35SVladimir Oltean help 30554aae35SVladimir Oltean This option provides the packing() helper function, which permits 31554aae35SVladimir Oltean converting bitfields between a CPU-usable representation and a 32554aae35SVladimir Oltean memory representation that can have any combination of these quirks: 33554aae35SVladimir Oltean - Is little endian (bytes are reversed within a 32-bit group) 34554aae35SVladimir Oltean - The least-significant 32-bit word comes first (within a 64-bit 35554aae35SVladimir Oltean group) 36554aae35SVladimir Oltean - The most significant bit of a byte is at its right (bit 0 of a 37554aae35SVladimir Oltean register description is numerically 2^7). 38554aae35SVladimir Oltean Drivers may use these helpers to match the bit indices as described 39554aae35SVladimir Oltean in the data sheets of the peripherals they are in control of. 40554aae35SVladimir Oltean 41554aae35SVladimir Oltean When in doubt, say N. 42554aae35SVladimir Oltean 43e9502ea6SJacob Kellerconfig PACKING_KUNIT_TEST 44e9502ea6SJacob Keller tristate "KUnit tests for packing library" if !KUNIT_ALL_TESTS 45e9502ea6SJacob Keller depends on PACKING && KUNIT 46e9502ea6SJacob Keller default KUNIT_ALL_TESTS 47e9502ea6SJacob Keller help 48e9502ea6SJacob Keller This builds KUnit tests for the packing library. 49e9502ea6SJacob Keller 50e9502ea6SJacob Keller For more information on KUnit and unit tests in general, 51e9502ea6SJacob Keller please refer to the KUnit documentation in Documentation/dev-tools/kunit/. 52e9502ea6SJacob Keller 53e9502ea6SJacob Keller When in doubt, say N. 54e9502ea6SJacob Keller 55a5cfc1ecSAkinobu Mitaconfig BITREVERSE 56a5cfc1ecSAkinobu Mita tristate 57a5cfc1ecSAkinobu Mita 58556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE 59841c0090SChristoph Jaeger bool 60556d2f05SYalin Wang default n 61556d2f05SYalin Wang help 629e522c0dSAndrew Morton This option enables the use of hardware bit-reversal instructions on 639e522c0dSAndrew Morton architectures which support such operations. 64556d2f05SYalin Wang 65e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER 662922585bSDavid S. Miller bool 672922585bSDavid S. Miller 68e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER 69a08c5356SLinus Torvalds bool 70a08c5356SLinus Torvalds 71e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER 72e6226997SArnd Bergmann def_bool !ARCH_HAS_STRNCPY_FROM_USER 73e6226997SArnd Bergmann 74e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER 75e6226997SArnd Bergmann def_bool !ARCH_HAS_STRNLEN_USER 76e6226997SArnd Bergmann 774cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS 784cd5773aSAndy Shevchenko bool 794cd5773aSAndy Shevchenko 802c64e9cbSAndy Shevchenkosource "lib/math/Kconfig" 812c64e9cbSAndy Shevchenko 82b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP 83b923650bSMichael S. Tsirkin bool 84b923650bSMichael S. Tsirkin 854673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP 864673ca8eSMichael S. Tsirkin bool 8766eab4dfSMichael S. Tsirkin select GENERIC_PCI_IOMAP 884673ca8eSMichael S. Tsirkin 894ccf4beaSWolfram Sangconfig STMP_DEVICE 904ccf4beaSWolfram Sang bool 914ccf4beaSWolfram Sang 92bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF 93bc08b449SLinus Torvalds bool 94bc08b449SLinus Torvalds 9572d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER 9672d93104SLinus Torvalds bool 9772d93104SLinus Torvalds 982ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS 992ce0d7f9SMark Brown bool 1002ce0d7f9SMark Brown 101031e3601SZhichang Yuanconfig INDIRECT_PIO 102031e3601SZhichang Yuan bool "Access I/O in non-MMIO mode" 103031e3601SZhichang Yuan depends on ARM64 104fcbfe812SNiklas Schnelle depends on HAS_IOPORT 105031e3601SZhichang Yuan help 106031e3601SZhichang Yuan On some platforms where no separate I/O space exists, there are I/O 107031e3601SZhichang Yuan hosts which can not be accessed in MMIO mode. Using the logical PIO 108031e3601SZhichang Yuan mechanism, the host-local I/O resource can be mapped into system 109031e3601SZhichang Yuan logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the 110031e3601SZhichang Yuan system can access the I/O devices with the mapped-logic PIO through 111031e3601SZhichang Yuan I/O accessors. 112031e3601SZhichang Yuan 113031e3601SZhichang Yuan This way has relatively little I/O performance cost. Please make 114031e3601SZhichang Yuan sure your devices really need this configure item enabled. 115031e3601SZhichang Yuan 116031e3601SZhichang Yuan When in doubt, say N. 117031e3601SZhichang Yuan 118ca2e3342SJohannes Bergconfig INDIRECT_IOMEM 119ca2e3342SJohannes Berg bool 120ca2e3342SJohannes Berg help 121ca2e3342SJohannes Berg This is selected by other options/architectures to provide the 122ca2e3342SJohannes Berg emulated iomem accessors. 123ca2e3342SJohannes Berg 124ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK 125ca2e3342SJohannes Berg bool 126ca2e3342SJohannes Berg depends on INDIRECT_IOMEM 127ca2e3342SJohannes Berg help 128ca2e3342SJohannes Berg If INDIRECT_IOMEM is selected, this enables falling back to plain 129ca2e3342SJohannes Berg mmio accesses when the IO memory address is not a registered 130ca2e3342SJohannes Berg emulated region. 131ca2e3342SJohannes Berg 132d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS 133d593d64fSPrasad Sodagudi bool "Register read/write tracing" 134d593d64fSPrasad Sodagudi depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS 135d593d64fSPrasad Sodagudi help 136d593d64fSPrasad Sodagudi Create tracepoints for MMIO read/write operations. These trace events 137d593d64fSPrasad Sodagudi can be used for logging all MMIO read/write operations. 138d593d64fSPrasad Sodagudi 139e56e1898SJustin M. Forbessource "lib/crypto/Kconfig" 140e56e1898SJustin M. Forbes 1411da177e4SLinus Torvaldsconfig CRC_CCITT 1427939da26SEric Biggers tristate 1431da177e4SLinus Torvalds 1447657ec1fSEvgeniy Polyakovconfig CRC16 1452038af8eSEric Biggers tristate 1467657ec1fSEvgeniy Polyakov 147f11f594eSMartin K. Petersenconfig CRC_T10DIF 148a6d0dbbaSEric Biggers tristate 149f11f594eSMartin K. Petersen 1500961c3bcSEric Biggersconfig ARCH_HAS_CRC_T10DIF 1510961c3bcSEric Biggers bool 1520961c3bcSEric Biggers 1530961c3bcSEric Biggersconfig CRC_T10DIF_ARCH 1540961c3bcSEric Biggers tristate 155b0430f39SEric Biggers default CRC_T10DIF if ARCH_HAS_CRC_T10DIF && CRC_OPTIMIZATIONS 1560961c3bcSEric Biggers 1573e7cbae7SIvo van Doornconfig CRC_ITU_T 158*a0d55dd7SEric Biggers tristate 1593e7cbae7SIvo van Doorn 1601da177e4SLinus Torvaldsconfig CRC32 1619ad19171SEric Biggers tristate 162906d66dfSAkinobu Mita select BITREVERSE 1631da177e4SLinus Torvalds 164d36cebe0SEric Biggersconfig ARCH_HAS_CRC32 165d36cebe0SEric Biggers bool 166d36cebe0SEric Biggers 167d36cebe0SEric Biggersconfig CRC32_ARCH 168d36cebe0SEric Biggers tristate 169b0430f39SEric Biggers default CRC32 if ARCH_HAS_CRC32 && CRC_OPTIMIZATIONS 170d36cebe0SEric Biggers 171feba04fdSColy Liconfig CRC64 172981b39dcSEric Biggers tristate 173feba04fdSColy Li 174067bc871SEric Biggersconfig ARCH_HAS_CRC64 175067bc871SEric Biggers bool 176067bc871SEric Biggers 177067bc871SEric Biggersconfig CRC64_ARCH 178067bc871SEric Biggers tristate 179067bc871SEric Biggers default CRC64 if ARCH_HAS_CRC64 && CRC_OPTIMIZATIONS 180067bc871SEric Biggers 1810cbaa448SJeremy Kerrconfig CRC4 1827f36255fSEric Biggers tristate 1830cbaa448SJeremy Kerr 184ad241528SJan Nikitenkoconfig CRC7 185f5a40fcfSEric Biggers tristate 186ad241528SJan Nikitenko 1871da177e4SLinus Torvaldsconfig LIBCRC32C 188dce214dbSEric Biggers tristate 18938a9a512SEric Biggers select CRC32 1901da177e4SLinus Torvalds help 19138a9a512SEric Biggers This option just selects CRC32 and is provided for compatibility 19238a9a512SEric Biggers purposes until the users are updated to select CRC32 directly. 1931da177e4SLinus Torvalds 1947150962dSArend van Sprielconfig CRC8 195aa09b322SEric Biggers tristate 1967150962dSArend van Spriel 197b0430f39SEric Biggersconfig CRC_OPTIMIZATIONS 198b0430f39SEric Biggers bool "Enable optimized CRC implementations" if EXPERT 199b0430f39SEric Biggers default y 200b0430f39SEric Biggers help 201b0430f39SEric Biggers Disabling this option reduces code size slightly by disabling the 202b0430f39SEric Biggers architecture-optimized implementations of any CRC variants that are 203b0430f39SEric Biggers enabled. CRC checksumming performance may get much slower. 204b0430f39SEric Biggers 205b0430f39SEric Biggers Keep this enabled unless you're really trying to minimize the size of 206b0430f39SEric Biggers the kernel. 207b0430f39SEric Biggers 2085d240522SNick Terrellconfig XXHASH 2095d240522SNick Terrell tristate 2105d240522SNick Terrell 211e65e1fc2SAl Viroconfig AUDIT_GENERIC 212e65e1fc2SAl Viro bool 213e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 214e65e1fc2SAl Viro default y 215e65e1fc2SAl Viro 2164b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC 2174b588411SAKASHI Takahiro bool 2184b588411SAKASHI Takahiro default n 2194b588411SAKASHI Takahiro 2204b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC 2214b588411SAKASHI Takahiro bool 2224b588411SAKASHI Takahiro depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT 2234b588411SAKASHI Takahiro default y 2244b588411SAKASHI Takahiro 225a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST 226a6a9c0f1SDaniel Borkmann bool "PRNG perform self test on init" 227a6a9c0f1SDaniel Borkmann help 228a6a9c0f1SDaniel Borkmann This option enables the 32 bit PRNG library functions to perform a 229a6a9c0f1SDaniel Borkmann self test on initialization. 230a6a9c0f1SDaniel Borkmann 2311da177e4SLinus Torvalds# 2321da177e4SLinus Torvalds# compression support is select'ed if needed 2331da177e4SLinus Torvalds# 2342da572c9SDan Streetmanconfig 842_COMPRESS 2355b571677SArnd Bergmann select CRC32 2362da572c9SDan Streetman tristate 2372da572c9SDan Streetman 2382da572c9SDan Streetmanconfig 842_DECOMPRESS 2395b571677SArnd Bergmann select CRC32 2402da572c9SDan Streetman tristate 2412da572c9SDan Streetman 2421da177e4SLinus Torvaldsconfig ZLIB_INFLATE 2431da177e4SLinus Torvalds tristate 2441da177e4SLinus Torvalds 2451da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 2461da177e4SLinus Torvalds tristate 2471fd4e5c3SAndrew Morton select BITREVERSE 2481da177e4SLinus Torvalds 249aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC 250aa5b395bSMikhail Zaslonko def_bool y 251aa5b395bSMikhail Zaslonko depends on S390 252aa5b395bSMikhail Zaslonko prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib" 253aa5b395bSMikhail Zaslonko help 254aa5b395bSMikhail Zaslonko Enable s390x hardware support for zlib in the kernel. 255aa5b395bSMikhail Zaslonko 25664c70b1cSRichard Purdieconfig LZO_COMPRESS 25764c70b1cSRichard Purdie tristate 25864c70b1cSRichard Purdie 25964c70b1cSRichard Purdieconfig LZO_DECOMPRESS 26064c70b1cSRichard Purdie tristate 26164c70b1cSRichard Purdie 262c72ac7a1SChanho Minconfig LZ4_COMPRESS 263c72ac7a1SChanho Min tristate 264c72ac7a1SChanho Min 265c72ac7a1SChanho Minconfig LZ4HC_COMPRESS 266c72ac7a1SChanho Min tristate 267c72ac7a1SChanho Min 268e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS 269e76e1fdfSKyungsik Lee tristate 270e76e1fdfSKyungsik Lee 271637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON 27273f3d1b4SNick Terrell select XXHASH 27373f3d1b4SNick Terrell tristate 27473f3d1b4SNick Terrell 275637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS 276637a642fSAlexey Kardashevskiy select ZSTD_COMMON 277637a642fSAlexey Kardashevskiy tristate 278637a642fSAlexey Kardashevskiy 27973f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS 280637a642fSAlexey Kardashevskiy select ZSTD_COMMON 28173f3d1b4SNick Terrell tristate 28273f3d1b4SNick Terrell 28324fa0402SLasse Collinsource "lib/xz/Kconfig" 28424fa0402SLasse Collin 2851da177e4SLinus Torvalds# 286c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 287c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 288c8531ab3SH. Peter Anvin# 289c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 2907856a16eSH. Peter Anvin select ZLIB_INFLATE 291c8531ab3SH. Peter Anvin tristate 292c8531ab3SH. Peter Anvin 293c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 294c8531ab3SH. Peter Anvin tristate 295c8531ab3SH. Peter Anvin 296c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 297c8531ab3SH. Peter Anvin tristate 298c8531ab3SH. Peter Anvin 2993ebe1243SLasse Collinconfig DECOMPRESS_XZ 3003ebe1243SLasse Collin select XZ_DEC 3013ebe1243SLasse Collin tristate 3023ebe1243SLasse Collin 303cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 304cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 305cacb246fSAlbin Tonnerre tristate 306cacb246fSAlbin Tonnerre 307e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4 308e76e1fdfSKyungsik Lee select LZ4_DECOMPRESS 309e76e1fdfSKyungsik Lee tristate 310e76e1fdfSKyungsik Lee 3114963bb2bSNick Terrellconfig DECOMPRESS_ZSTD 3124963bb2bSNick Terrell select ZSTD_DECOMPRESS 3134963bb2bSNick Terrell tristate 3144963bb2bSNick Terrell 315c8531ab3SH. Peter Anvin# 316f14f75b8SJes Sorensen# Generic allocator support is selected if needed 317f14f75b8SJes Sorensen# 318f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 3196341e62bSChristoph Jaeger bool 320f14f75b8SJes Sorensen 321f14f75b8SJes Sorensen# 3221da177e4SLinus Torvalds# reed solomon support is select'ed if needed 3231da177e4SLinus Torvalds# 3241da177e4SLinus Torvaldsconfig REED_SOLOMON 3251da177e4SLinus Torvalds tristate 3261da177e4SLinus Torvalds 3271da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 3286341e62bSChristoph Jaeger bool 3291da177e4SLinus Torvalds 3301da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 3316341e62bSChristoph Jaeger bool 3321da177e4SLinus Torvalds 3331da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 3346341e62bSChristoph Jaeger bool 3351da177e4SLinus Torvalds 3361da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 3376341e62bSChristoph Jaeger bool 3381da177e4SLinus Torvalds 339f7704347SDavid S. Miller# 340437aa565SIvan Djelic# BCH support is selected if needed 341437aa565SIvan Djelic# 342437aa565SIvan Djelicconfig BCH 343437aa565SIvan Djelic tristate 34402d7f74aSJohn Sanpe select BITREVERSE 345437aa565SIvan Djelic 346437aa565SIvan Djelicconfig BCH_CONST_PARAMS 3476341e62bSChristoph Jaeger bool 348437aa565SIvan Djelic help 349437aa565SIvan Djelic Drivers may select this option to force specific constant 350437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 351437aa565SIvan Djelic (error correction capability). Those specific values must 352437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 353437aa565SIvan Djelic and BCH_CONST_T. 354437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 355437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 356437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 357437aa565SIvan Djelic When this option is selected, the BCH library supports 358437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 359437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 360437aa565SIvan Djelic parameters. 361437aa565SIvan Djelic 362437aa565SIvan Djelicconfig BCH_CONST_M 363437aa565SIvan Djelic int 364437aa565SIvan Djelic range 5 15 365437aa565SIvan Djelic help 366437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 367437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 368437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 369437aa565SIvan Djelic Drivers should declare a default value for this symbol if 370437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 371437aa565SIvan Djelic 372437aa565SIvan Djelicconfig BCH_CONST_T 373437aa565SIvan Djelic int 374437aa565SIvan Djelic help 375437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 376437aa565SIvan Djelic Drivers should declare a default value for this symbol if 377437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 378437aa565SIvan Djelic 379437aa565SIvan Djelic# 380f7704347SDavid S. Miller# Textsearch support is select'ed if needed 381f7704347SDavid S. Miller# 3822de4ff7bSThomas Grafconfig TEXTSEARCH 3836341e62bSChristoph Jaeger bool 3841da177e4SLinus Torvalds 385df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 386f7704347SDavid S. Miller tristate 387df3fb93aSThomas Graf 3888082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 38929cb9f9cSDavid S. Miller tristate 3908082e4edSPablo Neira Ayuso 3916408f79cSThomas Grafconfig TEXTSEARCH_FSM 392f7704347SDavid S. Miller tristate 3936408f79cSThomas Graf 3945db53f3eSJoern Engelconfig BTREE 3956341e62bSChristoph Jaeger bool 3965db53f3eSJoern Engel 397a88cc108SChris Wilsonconfig INTERVAL_TREE 3986341e62bSChristoph Jaeger bool 399a88cc108SChris Wilson help 400a88cc108SChris Wilson Simple, embeddable, interval-tree. Can find the start of an 401a88cc108SChris Wilson overlapping range in log(n) time and then iterate over all 402a88cc108SChris Wilson overlapping nodes. The algorithm is implemented as an 403a88cc108SChris Wilson augmented rbtree. 404a88cc108SChris Wilson 405a88cc108SChris Wilson See: 406a88cc108SChris Wilson 40714bbe3e3SMatthew Wilcox (Oracle) Documentation/core-api/rbtree.rst 408a88cc108SChris Wilson 409a88cc108SChris Wilson for more information. 410a88cc108SChris Wilson 4115fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER 4125fe93786SJason Gunthorpe bool 4135fe93786SJason Gunthorpe depends on INTERVAL_TREE 4145fe93786SJason Gunthorpe 41502c02bf1SMatthew Wilcoxconfig XARRAY_MULTI 41657578c2eSMatthew Wilcox bool 41702c02bf1SMatthew Wilcox help 41802c02bf1SMatthew Wilcox Support entries which occupy multiple consecutive indices in the 41902c02bf1SMatthew Wilcox XArray. 42057578c2eSMatthew Wilcox 4213cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY 4223cb98950SDavid Howells bool 4233cb98950SDavid Howells help 4243cb98950SDavid Howells Generic associative array. Can be searched and iterated over whilst 4253cb98950SDavid Howells it is being modified. It is also reasonably quick to search and 4263cb98950SDavid Howells modify. The algorithms are non-recursive, and the trees are highly 4273cb98950SDavid Howells capacious. 4283cb98950SDavid Howells 4293cb98950SDavid Howells See: 4303cb98950SDavid Howells 4315fb94e9cSMauro Carvalho Chehab Documentation/core-api/assoc_array.rst 4323cb98950SDavid Howells 4333cb98950SDavid Howells for more information. 4343cb98950SDavid Howells 4358c8d2d96SKent Overstreetconfig CLOSURES 4368c8d2d96SKent Overstreet bool 4378c8d2d96SKent Overstreet 4385ea81769SAl Viroconfig HAS_IOMEM 4396341e62bSChristoph Jaeger bool 4405ea81769SAl Viro depends on !NO_IOMEM 4415ea81769SAl Viro default y 4425ea81769SAl Viro 443fcbfe812SNiklas Schnelleconfig HAS_IOPORT 444fcbfe812SNiklas Schnelle bool 445fcbfe812SNiklas Schnelle 446ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP 4476341e62bSChristoph Jaeger bool 448ce816fa8SUwe Kleine-König depends on HAS_IOMEM && !NO_IOPORT_MAP 449ee36c2bfSAl Viro default y 450ee36c2bfSAl Viro 451cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig" 452411f0f3eSHeiko Carstens 453e80a0af4SBart Van Asscheconfig SGL_ALLOC 454e80a0af4SBart Van Assche bool 455e80a0af4SBart Van Assche default n 456e80a0af4SBart Van Assche 457a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER 458a4ce5a48SChristoph Hellwig bool 459a4ce5a48SChristoph Hellwig 460928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 461928923c7SGeert Uytterhoeven bool 462928923c7SGeert Uytterhoeven 463aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 464aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 465aab46da0SRusty Russell help 466aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 467aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 468aab46da0SRusty Russell stack overflow. 469aab46da0SRusty Russell 4706f9c07beSYury Norovconfig FORCE_NR_CPUS 4715d272dd1SLinus Torvalds def_bool !SMP 4726f9c07beSYury Norov 473c39649c3SBen Hutchingsconfig CPU_RMAP 474c39649c3SBen Hutchings bool 475c39649c3SBen Hutchings depends on SMP 476c39649c3SBen Hutchings 47775957ba3STom Herbertconfig DQL 47875957ba3STom Herbert bool 47975957ba3STom Herbert 480b0125085SGeorge Spelvinconfig GLOB 481b0125085SGeorge Spelvin bool 482b0125085SGeorge Spelvin# This actually supports modular compilation, but the module overhead 483b0125085SGeorge Spelvin# is ridiculous for the amount of code involved. Until an out-of-tree 484b0125085SGeorge Spelvin# driver asks for it, we'll just link it directly it into the kernel 485b0125085SGeorge Spelvin# when required. Since we're ignoring out-of-tree users, there's also 486b0125085SGeorge Spelvin# no need bother prompting for a manual decision: 487b0125085SGeorge Spelvin# prompt "glob_match() function" 488b0125085SGeorge Spelvin help 489b0125085SGeorge Spelvin This option provides a glob_match function for performing 490b0125085SGeorge Spelvin simple text pattern matching. It originated in the ATA code 491b0125085SGeorge Spelvin to blacklist particular drive models, but other device drivers 492b0125085SGeorge Spelvin may need similar functionality. 493b0125085SGeorge Spelvin 494b0125085SGeorge Spelvin All drivers in the Linux kernel tree that require this function 495b0125085SGeorge Spelvin should automatically select this option. Say N unless you 496b0125085SGeorge Spelvin are compiling an out-of tree driver which tells you that it 497b0125085SGeorge Spelvin depends on this. 498b0125085SGeorge Spelvin 4995f9be824SGeorge Spelvinconfig GLOB_SELFTEST 500ba95b045SGeert Uytterhoeven tristate "glob self-test on init" 5015f9be824SGeorge Spelvin depends on GLOB 5025f9be824SGeorge Spelvin help 5035f9be824SGeorge Spelvin This option enables a simple self-test of the glob_match 5045f9be824SGeorge Spelvin function on startup. It is primarily useful for people 5055f9be824SGeorge Spelvin working on the code to ensure they haven't introduced any 5065f9be824SGeorge Spelvin regressions. 5075f9be824SGeorge Spelvin 5085f9be824SGeorge Spelvin It only adds a little bit of code and slows kernel boot (or 5095f9be824SGeorge Spelvin module load) by a small amount, so you're welcome to play with 5105f9be824SGeorge Spelvin it, but you probably don't need it. 5115f9be824SGeorge Spelvin 512e9cc8bddSGeert Uytterhoeven# 513e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 514e9cc8bddSGeert Uytterhoeven# 515e9cc8bddSGeert Uytterhoevenconfig NLATTR 516e9cc8bddSGeert Uytterhoeven bool 517e9cc8bddSGeert Uytterhoeven 51809d4e0edSPaul Mackerras# 51909d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 52009d4e0edSPaul Mackerras# 52109d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 52209d4e0edSPaul Mackerras bool 52309d4e0edSPaul Mackerras 524b411b363SPhilipp Reisnerconfig LRU_CACHE 525b411b363SPhilipp Reisner tristate 526b411b363SPhilipp Reisner 527c6df4b17SDavid Millerconfig CLZ_TAB 528c6df4b17SDavid Miller bool 529c6df4b17SDavid Miller 530511cbce2SChristoph Hellwigconfig IRQ_POLL 531511cbce2SChristoph Hellwig bool "IRQ polling library" 532511cbce2SChristoph Hellwig help 533511cbce2SChristoph Hellwig Helper library to poll interrupt mitigation using polling. 534511cbce2SChristoph Hellwig 535d9c46b18SDmitry Kasatkinconfig MPILIB 5362e5f094bSDmitry Kasatkin tristate 537c6df4b17SDavid Miller select CLZ_TAB 538d9c46b18SDmitry Kasatkin help 539d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 540d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 541d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 542d9c46b18SDmitry Kasatkin 5435e8898e9SDmitry Kasatkinconfig SIGNATURE 5442e5f094bSDmitry Kasatkin tristate 5450d1f64f6SDmitry Kasatkin depends on KEYS 5460d1f64f6SDmitry Kasatkin select CRYPTO 547be440ec7SDmitry Kasatkin select CRYPTO_SHA1 548051dbb91SDmitry Kasatkin select MPILIB 549051dbb91SDmitry Kasatkin help 550051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 551051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 552051dbb91SDmitry Kasatkin 5534f75da36STal Gilboaconfig DIMLIB 5540d5044b4SFlorian Fainelli tristate 555b65e697aSHeng Qi depends on NET 5564f75da36STal Gilboa help 5574f75da36STal Gilboa Dynamic Interrupt Moderation library. 558991ad2b2SRandy Dunlap Implements an algorithm for dynamically changing CQ moderation values 5594f75da36STal Gilboa according to run time performance. 5604f75da36STal Gilboa 561ab253839SDavid Daney# 562ab253839SDavid Daney# libfdt files, only selected if needed. 563ab253839SDavid Daney# 564ab253839SDavid Daneyconfig LIBFDT 565ab253839SDavid Daney bool 566ab253839SDavid Daney 567a77ad6eaSDavid Howellsconfig OID_REGISTRY 568a77ad6eaSDavid Howells tristate 569a77ad6eaSDavid Howells help 570a77ad6eaSDavid Howells Enable fast lookup object identifier registry. 571a77ad6eaSDavid Howells 5720635eb8aSMatthew Garrettconfig UCS2_STRING 5730635eb8aSMatthew Garrett tristate 5740635eb8aSMatthew Garrett 57500b26474SVincenzo Frascino# 57600b26474SVincenzo Frascino# generic vdso 57700b26474SVincenzo Frascino# 57800b26474SVincenzo Frascinosource "lib/vdso/Kconfig" 57900b26474SVincenzo Frascino 580ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig" 581ee89bd6bSGeert Uytterhoeven 582f8bcbe62SRobert Jarzmikconfig SG_SPLIT 583f8bcbe62SRobert Jarzmik def_bool n 584f8bcbe62SRobert Jarzmik help 5857f7e92f7SGeert Uytterhoeven Provides a helper to split scatterlists into chunks, each chunk being 5867f7e92f7SGeert Uytterhoeven a scatterlist. This should be selected by a driver or an API which 5877f7e92f7SGeert Uytterhoeven whishes to split a scatterlist amongst multiple DMA channels. 588f8bcbe62SRobert Jarzmik 5899b1d6c89SMing Linconfig SG_POOL 5909b1d6c89SMing Lin def_bool n 5919b1d6c89SMing Lin help 5929b1d6c89SMing Lin Provides a helper to allocate chained scatterlists. This should be 5939b1d6c89SMing Lin selected by a driver or an API which whishes to allocate chained 5949b1d6c89SMing Lin scatterlist. 5959b1d6c89SMing Lin 596308c09f1SLaura Abbott# 597308c09f1SLaura Abbott# sg chaining option 598308c09f1SLaura Abbott# 599308c09f1SLaura Abbott 6007c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN 601308c09f1SLaura Abbott def_bool n 602308c09f1SLaura Abbott 60361031952SRoss Zwislerconfig ARCH_HAS_PMEM_API 60461031952SRoss Zwisler bool 60561031952SRoss Zwisler 60633dd7075SDan Williamsconfig MEMREGION 60733dd7075SDan Williams bool 60833dd7075SDan Williams 6091156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION 6101156b441SDavidlohr Bueso bool 6111156b441SDavidlohr Bueso 6129ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN 6139ffc1d19SDan Williams bool 6149ffc1d19SDan Williams 615bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures 616bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY 617bd79f947SChristoph Hellwig bool 618bd79f947SChristoph Hellwig 6190aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE 6200aed55afSDan Williams bool 6210aed55afSDan Williams 622ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a 623ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and 624ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report 625ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source 626ec6347bbSDan Williams# buffer. 627ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC 628522239b4SDan Williams bool 629522239b4SDan Williams 630214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up 631214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK 632214d8ca6SThomas Gleixner bool 633214d8ca6SThomas Gleixner 634cd11016eSAlexander Potapenkoconfig STACKDEPOT 635cd11016eSAlexander Potapenko bool 636cd11016eSAlexander Potapenko select STACKTRACE 637fc60e0caSAndrey Konovalov help 638fc60e0caSAndrey Konovalov Stack depot: stack trace storage that avoids duplication 639cd11016eSAlexander Potapenko 6402dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT 6412dba5eb1SVlastimil Babka bool 6422dba5eb1SVlastimil Babka select STACKDEPOT 643fc60e0caSAndrey Konovalov help 644fc60e0caSAndrey Konovalov Always initialize stack depot during early boot 645fc60e0caSAndrey Konovalov 646fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES 647fc60e0caSAndrey Konovalov int "Maximum number of frames in trace saved in stack depot" 648fc60e0caSAndrey Konovalov range 1 256 649fc60e0caSAndrey Konovalov default 64 650fc60e0caSAndrey Konovalov depends on STACKDEPOT 6512dba5eb1SVlastimil Babka 6524e66934eSEric Dumazetconfig REF_TRACKER 6534e66934eSEric Dumazet bool 6544e66934eSEric Dumazet depends on STACKTRACE_SUPPORT 6554e66934eSEric Dumazet select STACKDEPOT 6564e66934eSEric Dumazet 65788459642SOmar Sandovalconfig SBITMAP 65888459642SOmar Sandoval bool 65988459642SOmar Sandoval 66044091d29SJiri Pirkoconfig PARMAN 6619d25af69SGeert Uytterhoeven tristate "parman" if COMPILE_TEST 66244091d29SJiri Pirko 6633dfdecc6SRandy Dunlapconfig OBJAGG 6643dfdecc6SRandy Dunlap tristate "objagg" if COMPILE_TEST 6653dfdecc6SRandy Dunlap 666de9e82c3SNeilBrownconfig LWQ_TEST 667de9e82c3SNeilBrown bool "Boot-time test for lwq queuing" 668de9e82c3SNeilBrown help 669de9e82c3SNeilBrown Run boot-time test of light-weight queuing. 670de9e82c3SNeilBrown 6712de4ff7bSThomas Grafendmenu 672b35cd988SPalmer Dabbelt 67380b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP 67480b0ca98SChristoph Hellwig bool 67580b0ca98SChristoph Hellwig 676e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3 677b35cd988SPalmer Dabbelt bool 678b35cd988SPalmer Dabbelt 679e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3 680b35cd988SPalmer Dabbelt bool 681b35cd988SPalmer Dabbelt 682e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3 683b35cd988SPalmer Dabbelt bool 684b35cd988SPalmer Dabbelt 685e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3 686b35cd988SPalmer Dabbelt bool 687b35cd988SPalmer Dabbelt 688e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2 689b35cd988SPalmer Dabbelt bool 690b35cd988SPalmer Dabbelt 691e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2 692b35cd988SPalmer Dabbelt bool 693b8265621SJacob Keller 694527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED 695527701edSPalmer Dabbelt bool 696527701edSPalmer Dabbelt 697b8265621SJacob Kellerconfig PLDMFW 698b8265621SJacob Keller bool 699b8265621SJacob Keller default n 700b0706762SJames Bottomley 701b0706762SJames Bottomleyconfig ASN1_ENCODER 702b0706762SJames Bottomley tristate 703cd705ea8SMichael Walle 704cd705ea8SMichael Walleconfig POLYNOMIAL 705cd705ea8SMichael Walle tristate 706a103f466SDave Jiang 707a103f466SDave Jiangconfig FIRMWARE_TABLE 708a103f466SDave Jiang bool 709bf9850f6SKuan-Wei Chiu 710bf9850f6SKuan-Wei Chiuconfig UNION_FIND 711bf9850f6SKuan-Wei Chiu bool 71292a8b224SKuan-Wei Chiu 71392a8b224SKuan-Wei Chiuconfig MIN_HEAP 71492a8b224SKuan-Wei Chiu bool 715