/linux-6.12.1/Documentation/admin-guide/mm/ |
D | userfaultfd.rst | 8 Userfaults allow the implementation of on-demand paging from userland 38 Vmas are not suitable for page- (or hugepage) granular fault tracking 48 is a corner case that would currently return ``-EBUSY``). 54 ---------------------- 63 - Any user can always create a userfaultfd which traps userspace page faults 67 - In order to also trap kernel page faults for the address space, either the 84 -------------------------- 101 - The ``UFFD_FEATURE_EVENT_*`` flags indicate that various other events 103 detail below in the `Non-cooperative userfaultfd`_ section. 105 - ``UFFD_FEATURE_MISSING_HUGETLBFS`` and ``UFFD_FEATURE_MISSING_SHMEM`` [all …]
|
/linux-6.12.1/fs/xfs/scrub/ |
D | nlinks.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2021-2024 Oracle. All Rights Reserved. 9 /* Live link count control structure. */ 19 * step because the collection iscan coordinates live updates to the 27 * Hook into directory updates so that we can receive live updates 41 * In-core link counts for a given inode in the filesystem. 77 * the number of dot entries. Should be zero for non-directories. 99 xchk_nlink_total(struct xfs_inode *ip, const struct xchk_nlink *live) in xchk_nlink_total() argument 101 uint64_t ret = live->parents; in xchk_nlink_total() 104 if (ip && S_ISDIR(VFS_I(ip)->i_mode) && VFS_I(ip)->i_nlink) in xchk_nlink_total() [all …]
|
D | nlinks_repair.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2021-2024 Oracle. All Rights Reserved. 35 * Live Inode Link Count Repair 38 * Use the live inode link count information that we collected to replace the 39 * nlink values of the incore inodes. A scrub->repair cycle should have left 40 * the live data and hooks active, so this is safe so long as we make sure the 63 struct xfs_mount *mp = ip->i_mount; in xrep_nlinks_is_orphaned() 65 if (obs->parents != 0) in xrep_nlinks_is_orphaned() 67 if (ip == mp->m_rootip || ip == sc->orphanage) in xrep_nlinks_is_orphaned() 80 pag = xfs_perag_get(sc->mp, XFS_INO_TO_AGNO(sc->mp, sc->ip->i_ino)); in xrep_nlinks_iunlink_remove() [all …]
|
D | iscan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2021-2024 Oracle. All Rights Reserved. 28 * Live File Scan 31 * Live file scans walk every inode in a live filesystem. This is more or 41 * live updates, which means there must be a provision to update the new index 43 * can be used in live update hook code to stop the scan and protect this data 47 * the live filesystem, it is assumed that the caller will add hooks as needed 55 * If the inobt record @rec covers @iscan->skip_ino, mark the inode free so 65 struct xfs_scrub *sc = iscan->sc; in xchk_iscan_mask_skipino() 66 struct xfs_mount *mp = sc->mp; in xchk_iscan_mask_skipino() [all …]
|
D | nlinks.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2021-2024 Oracle. All Rights Reserved. 36 * Live Inode Link Count Checking 63 return -ENOMEM; in xchk_setup_nlinks() 64 xnc->xname.name = xnc->namebuf; in xchk_setup_nlinks() 65 xnc->sc = sc; in xchk_setup_nlinks() 66 sc->buf = xnc; in xchk_setup_nlinks() 84 * Because we are scanning a live filesystem, it's possible that another thread 88 * shadowing transaction updates in this manner, live nlink check can ensure by 96 * overhead when live nlinks is /not/ running. Locking order for nlink [all …]
|
/linux-6.12.1/include/linux/ |
D | livepatch.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * livepatch.h - Kernel Live Patching Core 21 #define KLP_TRANSITION_IDLE -1 26 * struct klp_func - function structure for live patching 83 * struct klp_callbacks - pre/post live-(un)patch callback structure 88 * @post_unpatch_enabled: flag indicating if post-unpatch callback 91 * All callbacks are optional. Only the pre-patch callback, if provided, 93 * patch for any reason, including a non-zero error status returned from 94 * the pre-patch callback, no further callbacks will be executed. 105 * struct klp_object - kernel object structure for live patching [all …]
|
/linux-6.12.1/Documentation/bpf/ |
D | bpf_prog_run.rst | 1 .. SPDX-License-Identifier: GPL-2.0 16 -------- 20 can be used to unit test BPF programs against user-supplied context objects, and 28 - ``BPF_PROG_TYPE_SOCKET_FILTER`` 29 - ``BPF_PROG_TYPE_SCHED_CLS`` 30 - ``BPF_PROG_TYPE_SCHED_ACT`` 31 - ``BPF_PROG_TYPE_XDP`` 32 - ``BPF_PROG_TYPE_SK_LOOKUP`` 33 - ``BPF_PROG_TYPE_CGROUP_SKB`` 34 - ``BPF_PROG_TYPE_LWT_IN`` [all …]
|
/linux-6.12.1/Documentation/networking/device_drivers/ethernet/amd/ |
D | pds_vfio_pci.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 2 .. note: can be edited and viewed with /usr/bin/formiko-vim 14 The ``pds-vfio-pci`` module is a PCI driver that supports Live Migration 20 The pds-vfio-pci device is enabled via multiple configuration steps and 21 depends on the ``pds_core`` driver to create and enable SR-IOV Virtual 26 example assumes the pds_core and pds-vfio-pci modules are already 29 .. code-block:: bash 30 :name: example-setup-script 38 # Prevent non-vfio VF driver from probing the VF device 41 # Create single VF for Live Migration via pds_core [all …]
|
/linux-6.12.1/drivers/gpu/drm/xlnx/ |
D | zynqmp_disp.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017 - 2020 Xilinx, Inc. 8 * - Hyun Woo Kwon <hyun.kwon@xilinx.com> 9 * - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 19 #include <linux/dma-mapping.h> 21 #include <linux/media-bus-format.h> 34 * -------- 39 * +------------------------------------------------------------+ 40 * +--------+ | +----------------+ +-----------+ | 41 * | DPDMA | --->| | --> | Video | Video +-------------+ | [all …]
|
/linux-6.12.1/arch/arm64/include/uapi/asm/ |
D | sigcontext.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 25 * Signal context structure - contains all info to do with the state 53 * New records that can exceed this space need to be opt-in for userspace, so 63 * and be 16-byte aligned. The last structure must be a dummy one with the 85 * Note: similarly to all other integer fields, each V-register is stored in an 86 * endianness-dependent format, with the byte at offset i from the start of the 87 * in-memory representation of the register value containing 89 * bits [(7 + 8 * i) : (8 * i)] of the register on little-endian hosts; or 90 * bits [(127 - 8 * i) : (120 - 8 * i)] on big-endian hosts. 126 * 16-byte aligned address immediately after the terminating null [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/display/xlnx/ |
D | xlnx,zynqmp-dpsub.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/xlnx/xlnx,zynqmp-dpsub.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 +------------------------------------------------------------+ 15 +--------+ | +----------------+ +-----------+ | 16 | DPDMA | --->| | --> | Video | Video +-------------+ | 17 | 4x vid | | | | | Rendering | -+--> | | | +------+ 18 | 2x aud | | | Audio/Video | --> | Pipeline | | | DisplayPort |---> | PHY0 | 19 +--------+ | | Buffer Manager | +-----------+ | | Source | | +------+ [all …]
|
/linux-6.12.1/Documentation/livepatch/ |
D | reliable-stacktrace.rst | 15 functions may have live state and therefore may not be safe to patch. One way 16 to identify which functions are live is to use a stacktrace. 19 functions with live state, and best-effort approaches which can be helpful for 21 to provide a *reliable* stacktrace which ensures it never omits any live 38 * The return code is non-zero to indicate that the trace is not reliable. 47 function should attempt to detect such cases and return a non-zero error 52 3. Compile-time analysis 76 -------------------------------------- 99 ------------------------------- 133 ---------------------------------------------- [all …]
|
/linux-6.12.1/Documentation/admin-guide/LSM/ |
D | tomoyo.rst | 8 TOMOYO is a name-based MAC extension (LSM module) for the Linux kernel. 10 LiveCD-based tutorials are available at 12 https://tomoyo.sourceforge.net/1.8/ubuntu12.04-live.html 13 https://tomoyo.sourceforge.net/1.8/centos6-live.html 15 Though these tutorials use non-LSM version of TOMOYO, they are useful for you 29 User <-> Kernel interface documentation is available at 30 https://tomoyo.sourceforge.net/2.6/policy-specification/index.html . 38 https://sourceforge.net/projects/tomoyo/files/docs/lca2009-takeda.pdf 40 https://sourceforge.net/projects/tomoyo/files/docs/freedomhectaipei-tomoyo.pdf 42 https://sourceforge.net/projects/tomoyo/files/docs/PacSec2007-en-no-demo.pdf [all …]
|
/linux-6.12.1/Documentation/arch/arm64/ |
D | sve.rst | 23 ----------- 26 tracked per-thread. 34 instructions and registers, and the Linux-specific system interfaces 61 cpu-feature-registers.txt for details. 79 an endianness-invariant layout, with bits [(8 * i + 7) : (8 * i)] encoded at 84 Beware that on big-endian systems this results in a different byte order than 85 for the FPSIMD V-registers, which are stored as single host-endian 128-bit 86 values, with bits [(127 - 8 * i) : (120 - 8 * i)] of the register encoded at 91 ----------------------------- 98 * Vector length (VL) = size of a Z-register in bytes [all …]
|
/linux-6.12.1/include/uapi/linux/ |
D | batadv_packet.h | 1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */ 15 * batadv_tp_is_error() - Check throughput meter return code for error 23 * enum batadv_packettype - types for batman-adv encapsulated packets 40 /* 0x00 - 0x3f: local packets or special rules for handling */ 47 /* 0x40 - 0x7f: unicast */ 55 /* 0x80 - 0xff: reserved */ 59 * enum batadv_subtype - packet subtype for unicast4addr 76 * enum batadv_iv_flags - flags used in B.A.T.M.A.N. IV OGM packets 90 * enum batadv_icmp_packettype - ICMP message types 108 * enum batadv_mcast_flags - flags for multicast capabilities and settings [all …]
|
/linux-6.12.1/arch/xtensa/kernel/ |
D | coprocessor.S | 4 * Xtensa processor configuration-specific table of coprocessor and 11 * Copyright (C) 2003 - 2007 Tensilica Inc. 16 #include <asm/asm-offsets.h> 25 * - a task may have live coprocessors only on one CPU. 27 * - whether coprocessor context of task T is live on some CPU is 28 * denoted by T's thread_info->cpenable. 30 * - non-zero thread_info->cpenable means that thread_info->cp_owner_cpu 31 * is valid in the T's thread_info. Zero thread_info->cpenable means that 34 * - if a coprocessor context of task T is live on CPU X, only CPU X changes 35 * T's thread_info->cpenable, cp_owner_cpu and coprocessor save area. [all …]
|
/linux-6.12.1/drivers/misc/lkdtm/ |
D | rodata.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This includes functions that are meant to live entirely in .rodata 4 * (via objcopy tricks), to validate the non-executability of .rodata.
|
/linux-6.12.1/sound/pci/emu10k1/ |
D | emu10k1_main.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * James Courtier-Dutton <James@superbug.co.uk> 85 if (emu->audigy) { in snd_emu10k1_voice_init() 128 { 0x0e, 0xcf }, /* Attenuation Left 0x01 = -103dB, 0xff = 24dB */ 146 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init() 148 outl(0, emu->port + INTE); in snd_emu10k1_init() 169 if (emu->audigy) { in snd_emu10k1_init() 182 SPCS0, emu->spdif_bits[0], in snd_emu10k1_init() 183 SPCS1, emu->spdif_bits[1], in snd_emu10k1_init() 184 SPCS2, emu->spdif_bits[2], in snd_emu10k1_init() [all …]
|
/linux-6.12.1/drivers/of/ |
D | overlay.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 27 * struct target - info about current target node as recursing through overlay 29 * @in_livetree: @np is a node in the live devicetree 33 * in the live devicetree where the overlay subtree is targeted to be grafted 35 * also recurses to the next level of the live devicetree, as long as overlay 36 * subtree node also exists in the live devicetree. When a node in the overlay 37 * subtree does not exist at the same level in the live devicetree, target->np 47 * struct fragment - info about fragment nodes in overlay expanded device tree 67 * @cset: changeset to apply fragments to live device tree [all …]
|
/linux-6.12.1/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-chk-gpr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * speculative nature of the 'live' registers and may infer the wrong 32 #define NV_GPR_REGS 18 /* Number of non-volatile GPR registers */ 33 #define R14 14 /* First non-volatile register to check in r14-r31 subset */ 39 /* Test only non-volatile general purpose registers, i.e. r14-r31 */ 41 /* First context will be set with these values, i.e. non-speculative */ 46 -1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18 53 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 57 fail = (ucp->uc_mcontext.gp_regs[R14 + i] != gprs[i]); in signal_usr1() 61 R14 + i, ucp->uc_mcontext.gp_regs[R14 + i], gprs[i]); in signal_usr1() [all …]
|
D | tm-signal-context-chk-fpu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * speculative nature of the 'live' registers and may infer the wrong 32 #define NV_FPU_REGS 18 /* Number of non-volatile FP registers */ 33 #define FPR14 14 /* First non-volatile FP register to check in f14-31 subset */ 37 /* Test only non-volatile registers, i.e. 18 fpr registers from f14 to f31 */ 39 /* First context will be set with these values, i.e. non-speculative */ 42 -1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18 51 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1() 59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1() [all …]
|
/linux-6.12.1/Documentation/admin-guide/ |
D | tainted-kernels.rst | 2 --------------- 16 ('kernel oops') or a non-recoverable error ('kernel panic') and writes debug 30 CPU: 0 PID: 4424 Comm: insmod Tainted: P W O 4.20.0-0.rc6.fc30 #1 43 a warning occurred (``W``), and an externally-built module was loaded (``O``). 53 decode that number is the script ``tools/debugging/kernel-chktaint``, which your 54 distribution might ship as part of a package called ``linux-tools`` or 55 ``kernel-tools``; if it doesn't, you can download the script from 56 …git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/tools/debugging/kernel-chktaint>`_ 57 and execute it with ``sh kernel-chktaint``, which would print something like 63 * Externally-built ('out-of-tree') module was loaded (#12) [all …]
|
/linux-6.12.1/Documentation/trace/ |
D | ftrace-uses.rst | 18 for live kernel patching, or for security monitoring. This document describes 48 .. code-block:: c 87 .. code-block:: c 119 .. code-block:: c 129 .. code-block:: c 152 .. code-block:: c 201 traced function), it requires setting this flag. This is what live 202 kernel patches uses. Without this flag the pt_regs->ip can not be 234 .. code-block:: c 248 Non-zero to reset all filters before applying this filter. [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | btree_cache.c | 1 // SPDX-License-Identifier: GPL-2.0 23 bc->not_freed[BCH_BTREE_CACHE_NOT_FREED_##counter]++; \ 37 if (!c->btree_roots_known[0].b) in bch2_recalc_btree_reserve() 43 if (r->b) in bch2_recalc_btree_reserve() 44 reserve += min_t(unsigned, 1, r->b->c.level) * 8; in bch2_recalc_btree_reserve() 47 c->btree_cache.nr_reserve = reserve; in bch2_recalc_btree_reserve() 52 struct btree_cache *bc = container_of(list, struct btree_cache, live[list->idx]); in btree_cache_can_free() 54 size_t can_free = list->nr; in btree_cache_can_free() 55 if (!list->idx) in btree_cache_can_free() 56 can_free = max_t(ssize_t, 0, can_free - bc->nr_reserve); in btree_cache_can_free() [all …]
|
/linux-6.12.1/drivers/gpu/drm/vc4/ |
D | vc4_validate_shaders.c | 30 * the general-purpose DMA mode) or reading system memory it shouldn't 31 * (reading it as a texture, uniform data, or direct-addressed TMU 109 return 64 + waddr - QPU_W_ACC0; in waddr_to_live_reg_index() 159 uint32_t s = validated_shader->num_texture_samples; in record_texture_sample() 163 temp_samples = krealloc(validated_shader->texture_samples, in record_texture_sample() 170 &validation_state->tmu_setup[tmu], in record_texture_sample() 173 validated_shader->num_texture_samples = s + 1; in record_texture_sample() 174 validated_shader->texture_samples = temp_samples; in record_texture_sample() 177 validation_state->tmu_setup[tmu].p_offset[i] = ~0; in record_texture_sample() 187 uint64_t inst = validation_state->shader[validation_state->ip]; in check_tmu_write() [all …]
|