| /linux/Documentation/process/ |
| H A D | botching-up-ioctls.rst | 5 From: https://blog.ffwll.ch/2013/11/botching-up-ioctls.html 13 Which is nice, since there's no more insanity in the form of fake-generic, but 18 lessons learned while botching the job for the drm/i915 driver. Most of these 19 only cover technicalities and not the big-picture issues like what the command 25 ------------- 28 will need to add a 32-bit compat layer: 33 * Align everything to the natural size and use explicit padding. 32-bit 34 platforms don't necessarily align 64-bit values to 64-bit boundaries, but 35 64-bit platforms do. So we always need padding to the natural size to get 36 this right. [all …]
|
| H A D | applying-patches.rst | 11 This document is obsolete. In most cases, rather than using ``patch`` 54 in the patch file when applying it (the ``-p1`` argument to ``patch`` does 57 To revert a previously applied patch, use the -R argument to patch. 60 patch -p1 < ../patch-x.y.z 64 patch -R -p1 < ../patch-x.y.z 76 patch -p1 < path/to/patch-x.y.z 82 Patch can also get the name of the file to use via the -i argument, like 85 patch -p1 -i path/to/patch-x.y.z 91 xzcat path/to/patch-x.y.z.xz | patch -p1 92 bzcat path/to/patch-x.y.z.gz | patch -p1 [all …]
|
| H A D | security-bugs.rst | 11 --------------------- 16 Documentation/admin-guide/reporting-issues.rst if you are unclear about what 35 instructions, file-system image etc). Binary-only executables are not 57 not being the right one, because it helps understand the bug. When 59 immediately merged (see Documentation/process/submitting-patches.rst). 60 This will save some back-and-forth exchanges if it is accepted, and you 62 only a ``Signed-off-by:`` tag is needed, without ``Reported-by:`` when the 70 -------------------------------- 72 It is important that most bugs are handled publicly so as to involve the widest 81 Documentation/process/threat-model.rst, and ought to have been sent through [all …]
|
| H A D | management-style.rst | 8 mirror the :ref:`process/coding-style.rst <codingstyle>` document to some 35 ------------ 37 Everybody thinks managers make decisions, and that decision-making is 55 painful ones. Making small and non-consequential decisions is fine, and 65 **two** inconsequential decisions - the wrong one **and** the right one. 72 you cannot escape. A cornered rat may be dangerous - a cornered manager 80 back-tracking is very easy: just tell everybody that you were an 89 - admitting you were an idiot is harder than it looks. We all like to 92 - having somebody tell you that what you worked on for the last year 101 admitting up-front that you don't have a friggin' clue, and telling [all …]
|
| /linux/Documentation/arch/x86/ |
| H A D | kernel-stacks.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 Kernel stacks on x86-64 bit 10 Most of the text from Keith Owens, hacked by AK 37 per CPU interrupt nest counter. This is needed because x86-64 "IST" 48 An IST is selected by a non-zero value in the IST field of an 49 interrupt-gate descriptor. When an interrupt occurs and the hardware 53 will switch back to the per-thread stack. If software wants to allow 62 IST events with the same code to be nested. However in most cases, the 70 Used for interrupt 8 - Double Fault Exception (#DF). 79 Used for non-maskable interrupts (NMI). [all …]
|
| /linux/Documentation/maintainer/ |
| H A D | rebasing-and-merging.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 Git source-code management system. Git is a powerful tool with a lot of 9 features; as is often the case with such tools, there are right and wrong 30 - Changing the parent (starting) commit upon which a series of patches is 36 - Changing the history of a set of patches by fixing (or deleting) broken 48 - History that has been exposed to the world beyond your private system 54 That said, there are always exceptions. Some trees (linux-next being 61 - Do not rebase a branch that contains history created by others. If you 67 - Do not reparent a tree without a good reason to do so. Just being on a 71 - If you must reparent a repository, do not pick some random kernel commit [all …]
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | sparsebit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 * sparsebit_alloc() and most also take a bit index. Frequently 30 * ---- Query Operations 37 * ---- Modifying Operations 67 * For the most part the internal implementation of sparsebit is 72 * set. It is also efficient in memory usage when most of the bits are 75 * At a high-level the state of the bit settings are maintained through 76 * the use of a binary-search tree, where each node contains at least 87 * node, while the mask member stores the setting of the first 32-bits. 99 * represent cases where most bits are set. For example, the case of all [all …]
|
| /linux/Documentation/arch/arm/google/ |
| H A D | chromebook-boot-flow.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 Most recent Chromebooks that use device tree are using the opensource 10 is up to depthcharge_ to pick the right device tree from the `FIT Image`_ and 16 - Board name, specified at depthcharge_ compile time. This is $(BOARD) below. 17 - Board revision number, determined at runtime (perhaps by reading GPIO 19 - SKU number, read from GPIO strappings at boot time. This is $(SKU) below. 23 - google,$(BOARD)-rev$(REV)-sku$(SKU) 24 - google,$(BOARD)-rev$(REV) 25 - google,$(BOARD)-sku$(SKU) 26 - google,$(BOARD) [all …]
|
| /linux/Documentation/driver-api/media/drivers/ |
| H A D | pvrusb2.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 ---------- 13 Its history started with the reverse-engineering effort by Björn 29 1. Low level wire-protocol implementation with the device. 38 tear-down, arbitration, and interaction with high level 45 The most important shearing layer is between the top 2 layers. A 54 right now the V4L high level interface is the most complete, the 56 functions, and there's no reason I see right now why it shouldn't be 57 possible to produce a DVB high level interface that can sit right 61 -------- [all …]
|
| /linux/Documentation/filesystems/iomap/ |
| H A D | porting.rst | 1 .. SPDX-License-Identifier: GPL-2.0 27 This worked well enough for direct/indirect-mapped filesystems such 28 as ext2, but is very inefficient for extent-based filesystems such 34 3. Direct access to storage on memory-like devices (fsdax) is only 40 No ->write_begin(), ->write_end() or direct_IO 49 Build the kernel, run fstests with the ``-g all`` option across a wide 53 The recommended approach is first to implement ``->iomap_begin`` (and 54 ``->iomap_end`` if necessary) to allow iomap to obtain a read-only 56 In most cases, this is a relatively trivial conversion of the existing 57 ``get_block()`` function for read-only mappings. [all …]
|
| /linux/lib/ |
| H A D | btree.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lib/btree.c - Simple In-memory B+Tree 5 * Copyright (c) 2007-2008 Joern Engel <joern@purestorage.com> 9 * see http://programming.kicks-ass.net/kernel-patches/vma_lookup/btree.patch 27 * ~98% pointers - hard to beat. Very sparse radix trees contain only ~2% 35 * values are to the right, not to the left. All used slots within a node 36 * are on the left, all unused slots contain NUL values. Most operations 96 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc() 108 return -1; in longcmp() 139 for (i = geo->keylen - 1; i >= 0; i--) { in dec_key() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | falloc.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 7 #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ 21 * granularity of the operation. Most will limit operations to 27 * considered an illegal operation - just use ftruncate(2) if you need 36 * unwritten extents - even though file system may choose to zero out the 49 * shifted towards right by len bytes to create a hole. As such, this 53 * of the operation. Most will limit operations to filesystem block size 58 * the file is considered an illegal operation - just use ftruncate(2) or 67 * copy-on-write. 70 * granularity of the operation. Most will limit operations to filesystem [all …]
|
| /linux/arch/openrisc/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 # see Documentation/kbuild/kconfig-language.rst. 95 caches at relevant times. Most OpenRISC implementations support write- 144 bool "Have instruction l.ror for rotate right" 152 l.ror rotate right instruction. 157 bool "Have instruction l.rori for rotate right with immediate" 165 l.rori rotate right with immediate instruction. 185 int "Maximum number of CPUs (2-32)" 191 bool "Symmetric Multi-Processing support" 203 Say N here if you want to disable all floating-point related procedures [all …]
|
| /linux/drivers/media/rc/keymaps/ |
| H A D | rc-kworld-plus-tv-analog.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // kworld-plus-tv-analog.h - Keytable for kworld_plus_tv_analog Remote Controller 4 // keymap imported from ir-keymaps.c 8 #include <media/rc-map.h> 17 { 0x16, KEY_CLOSECD }, /* -> ) */ 26 /* Two keys have the same code: 4 and right */ 45 /* Couldn't map key left/key right since those 55 Most of them conflict with digits.
|
| /linux/drivers/media/i2c/ |
| H A D | tda7432.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * For the STS-Thompson TDA7432 audio processor chip 18 * debug - set to 1 if you'd like to see debug messages 21 * loudness - set between 0 and 15 for varying degrees of loudness effect 23 * maxvol - set maximum volume to +20db (1), default is 0db(0) 37 #include <media/v4l2-device.h> 38 #include <media/v4l2-ioctl.h> 39 #include <media/v4l2-ctrls.h> 84 return &container_of(ctrl->handler, struct tda7432, hdl)->sd; in to_sd() 87 /* The TDA7432 is made by STS-Thompson [all …]
|
| /linux/Documentation/driver-api/usb/ |
| H A D | dma.rst | 11 The big picture is that USB drivers can continue to ignore most DMA issues, 12 though they still must provide DMA-ready buffers (see 13 Documentation/core-api/dma-api-howto.rst). That's how they've worked through 14 the 2.4 (and earlier) kernels, or they can now be DMA-aware. 16 DMA-aware usb drivers: 18 - New calls enable DMA-aware drivers, letting them allocate dma buffers and 19 manage dma mappings for existing dma-ready buffers (see below). 21 - URBs have an additional "transfer_dma" field, as well as a transfer_flags 25 - "usbcore" will map this DMA address, if a DMA-aware driver didn't do 29 - There's a new "generic DMA API", parts of which are usable by USB device [all …]
|
| /linux/Documentation/driver-api/media/ |
| H A D | rc-core.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------------------------- 13 Also, on most hardware, keeping a key pressed for more than a few dozens of 23 infrared-based remote controllers, there's no key release event. Instead, 26 However, most of the remote controllers use infrared (IR) to transmit signals. 48 At receiver, a simple low-pass filter can be used to convert the received 64 without any receivers. Right now, all such devices work only in 78 The Kernel has support for mapping tables available on most media 86 .. kernel-doc:: include/media/rc-core.h 88 .. kernel-doc:: include/media/rc-map.h
|
| H A D | v4l2-intro.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------------ 7 hardware: most devices have multiple ICs, export multiple device nodes in 8 /dev, and create also non-V4L2 devices such as DVB, ALSA, FB, I2C and input 12 do audio/video muxing/encoding/decoding makes it more complex than most. 15 called 'sub-devices'. 22 connecting to sub-devices themselves. Some of this is quite complicated 23 to do right and many drivers never did do it correctly. 32 A good example to look at as a reference is the v4l2-pci-skeleton.c 38 ------------------------- [all …]
|
| /linux/arch/parisc/math-emu/ |
| H A D | fpbits.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 10 PA header file -- do not include this header file for non-PA builds. 18 * and bitfield assignment (default left-to-right, unlike VAX, PDP-11) 20 * the C compiler "-D" flag (e.g., -DHOSTWDSZ=36 -DBITFLR for the DEC-20). 22 * is a 32-bit integer (right-justified on the 20) and that bit 0 is the 23 * most significant bit. 33 /*------------------------------------------------------------------------- [all …]
|
| H A D | sfsub.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 5 * Floating-point emulation code 6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org> 42 register unsigned int left, right, result, extent; in sgl_fsub() local 51 right = *rightptr; in sgl_fsub() 55 Sgl_xortointp1(left,right,/*to*/save); in sgl_fsub() 64 if (Sgl_isnotnan(right)) in sgl_fsub() 66 if (Sgl_isinfinity(right) && save==0) in sgl_fsub() 100 else if (Sgl_is_signalingnan(right)) in sgl_fsub() [all …]
|
| /linux/Documentation/sound/hd-audio/ |
| H A D | realtek-pc-beep.rst | 20 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 24 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 37 Amplify 1Ah loopback, right (R): 1 bit 38 Amplify the right channel of 1Ah before mixing it into outputs as specified 58 +--DIV--+--!DIV--+ {1Ah boost control} 60 +--(b == 0)--+--(b != 0)--+ 70 +-----!h-----+-----S-----+ 79 All Realtek HDA codecs have a vendor-defined widget with node ID 20h which 87 Realtek, is of note: unlike most registers, which seem to control detailed 111 Linux, it seems, has gone through most of them. For one, the register resets [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | i18n.c | 1 // SPDX-License-Identifier: GPL-2.0 52 [MSG_EDGE_RIGHT] = "right,", 57 [MSG_CTRL] = "control-", 72 /* Most of these duplicate the entries in state names. */ 136 [MSG_KEYNAME_RIGHTBRACE] = "right brace", 163 [MSG_KEYNAME_RIGHTSHFT] = "right shift", 206 [MSG_KEYNAME_RIGHTCTRL] = "right control", 209 [MSG_KEYNAME_RIGHTALT] = "right alt", 215 [MSG_KEYNAME_RIGHT] = "right", 235 [MSG_KEYNAME_RIGHTMETA] = "right meta", [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | adc-joystick.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2019-2020 Artur Rojek 4 --- 5 $id: http://devicetree.org/schemas/input/adc-joystick.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Artur Rojek <contact@artur-rojek.eu> 18 - $ref: input.yaml# 22 const: adc-joystick 24 io-channels: 31 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml [all …]
|
| /linux/Documentation/usb/ |
| H A D | ehci.rst | 5 27-Dec-2002 8 USB 2.0-capable host controller hardware. The USB 2.0 standard is 11 - "High Speed" 480 Mbit/sec (60 MByte/sec) 12 - "Full Speed" 12 Mbit/sec (1.5 MByte/sec) 13 - "Low Speed" 1.5 Mbit/sec 31 While usb-storage devices have been available since mid-2001 (working 34 appear to be on hold until more systems come with USB 2.0 built-in. 39 other changes to the Linux-USB core APIs, including the hub driver, 43 - David Brownell 52 It's believed to do all the right PCI magic so that I/O works even on [all …]
|
| /linux/Documentation/driver-api/driver-model/ |
| H A D | driver.rst | 41 Most drivers will not be able to be converted completely to the new 42 model because the bus they belong to has a bus-specific structure with 43 bus-specific fields that cannot be generalized. 45 The most common example of this are device ID structures. A driver 48 completely bus-specific. Defining them as bus-specific entities would 49 sacrifice type-safety, so we keep bus-specific structures around. 51 Bus-specific drivers should include a generic struct device_driver in 52 the definition of the bus-specific driver. Like this:: 59 A definition that included bus-specific fields would look like 85 no bus-specific fields (i.e. don't have a bus-specific driver [all …]
|