/openbmc/linux/lib/ |
H A D | locking-selftest.c | 3 * lib/locking-selftest.c 5 * Testsuite for various locking APIs: spinlocks, rwlocks, 309 #include "locking-selftest-spin.h" 311 #include "locking-selftest-wlock.h" 313 #include "locking-selftest-rlock.h" 315 #include "locking-selftest-mutex.h" 317 #include "locking-selftest-wsem.h" 319 #include "locking-selftest-rsem.h" 323 #include "locking-selftest-rtmutex.h" 330 * Special-case for read-locking, they are [all …]
|
/openbmc/linux/kernel/locking/ |
H A D | lock_events_list.h | 23 * Locking events for PV qspinlock. 39 * Locking events for qspinlock 44 LOCK_EVENT(lock_pending) /* # of locking ops via pending code */ 45 LOCK_EVENT(lock_slowpath) /* # of locking ops via MCS lock queue */ 46 LOCK_EVENT(lock_use_node2) /* # of locking ops that use 2nd percpu node */ 47 LOCK_EVENT(lock_use_node3) /* # of locking ops that use 3rd percpu node */ 48 LOCK_EVENT(lock_use_node4) /* # of locking ops that use 4th percpu node */ 49 LOCK_EVENT(lock_no_node) /* # of locking ops w/o using percpu node */ 53 * Locking events for rwsem
|
/openbmc/linux/tools/memory-model/Documentation/ |
H A D | simple.txt | 39 This approach is called "code locking". 41 Code locking can severely limit both performance and scalability, so it 47 One of the advantages of locking is that, in happy contrast with the 48 year 1981, almost all kernel developers are very familiar with locking. 52 Please use the standard locking primitives provided by the kernel rather 58 locking functions must carefully prevent both the CPU and the compiler 59 from moving code in either direction across the locking function. 86 Data locking 89 With code locking, we use single-threaded code execution to guarantee 104 As the number of buckets increases, data locking scales naturally. [all …]
|
H A D | locking.txt | 1 Locking 4 Locking is well-known and the common use cases are straightforward: Any 13 Locking and Prior Accesses 16 The basic rule of locking is worth repeating: 50 Locking and Subsequent Accesses 82 locking basic rule extend across multiple acquisitions of a given lock 86 Double-Checked Locking 90 double-checked locking work correctly, This litmus test illustrates 93 /* See Documentation/litmus-tests/locking/DCL-broken.litmus. */ 118 /* See Documentation/litmus-tests/locking/DCL-fixed.litmus. */ [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A D | mma9551_core.c | 210 * Locking note: This function must be called with the device lock held. 211 * Locking is not handled inside the function. Callers should ensure they 235 * Locking note: This function must be called with the device lock held. 236 * Locking is not handled inside the function. Callers should ensure they 260 * Locking note: This function must be called with the device lock held. 261 * Locking is not handled inside the function. Callers should ensure they 285 * Locking note: This function must be called with the device lock held. 286 * Locking is not handled inside the function. Callers should ensure they 319 * Locking note: This function must be called with the device lock held. 320 * Locking is not handled inside the function. Callers should ensure they [all …]
|
/openbmc/linux/Documentation/filesystems/ |
H A D | directory-locking.rst | 2 Directory Locking 6 Locking scheme used for directory operations is based on two 16 1) read access. Locking rules: caller locks directory we are accessing. 19 2) object creation. Locking rules: same as above, but the lock is taken 22 3) object removal. Locking rules: caller locks parent, finds victim, 25 4) rename() that is _not_ cross-directory. Locking rules: caller locks 36 5) link creation. Locking rules: 45 6) cross-directory rename. The trickiest in the whole bunch. Locking 123 But locking rules for cross-directory rename guarantee that we do not 139 While this locking scheme works for arbitrary DAGs, it relies on
|
H A D | dlmfs.rst | 41 dlmfs for easy to setup and easy to use clustered locking in 64 Locking chapter 69 system calls and presents a more traditional locking api. 74 locking. 94 domain directory. Locking against them is done via the open(2) system 113 Open Flag Resulting Locking Behavior 140 For more information on the VMS distributed locking API.
|
/openbmc/linux/Documentation/locking/ |
H A D | lockdep-design.rst | 1 Runtime locking correctness validator 14 respect to locking rules, even if the locks may have multiple (possibly 51 where the n STATEs are coded in kernel/locking/lockdep_states.h and as of 61 When locking rules are violated, these usage bits are presented in the 62 locking error messages, inside curlies, with a total of 2 * n STATEs bits. 152 i.e., there can be any other locking sequence between the acquire-lock 168 The above rules are enforced for any locking sequence that occurs in the 192 Exception: Nested data dependencies leading to nested locking 202 An example of such an object hierarchy that results in "nested locking" 207 automatically detect this natural ordering, as the locking rule behind [all …]
|
H A D | preempt-locking.rst | 2 Proper Locking Under a Preemptible Kernel: Keeping Kernel Code Preempt-Safe 12 A preemptible kernel creates new locking issues. The issues are the same as 14 kernel model leverages existing SMP locking mechanisms. Thus, the kernel 15 requires explicit additional locking for very few additional situations. 32 First, since the data is per-CPU, it may not have explicit SMP locking, but 132 in doubt, rely on locking or explicit preemption disabling.
|
H A D | percpu-rw-semaphore.rst | 6 optimized for locking for reading. 13 Locking for reading is very fast, it uses RCU and it avoids any atomic 14 instruction in the lock and unlock path. On the other hand, locking for
|
/openbmc/linux/include/linux/ |
H A D | kfifo.h | 30 * Note about locking: There is no locking required until only one reader 251 * a spinlock for locking 253 * @lock: spinlock to be used for locking 267 * using a spinlock for locking, doesn't disable interrupts 269 * @lock: spinlock to be used for locking 403 * writer, you don't need extra locking to use these macro. 440 * writer, you don't need extra locking to use these macro. 479 * writer, you don't need extra locking to use these macro. 517 * writer, you don't need extra locking to use these macro. 532 * kfifo_in_spinlocked - put data into the fifo using a spinlock for locking [all …]
|
H A D | seqlock.h | 9 * See Documentation/locking/seqlock.rst 55 * locking primitives, use a sequence counter with associated lock 62 * See Documentation/locking/seqlock.rst 131 * See Documentation/locking/seqlock.rst 148 * sleeping locks. See Documentation/locking/locktypes.rst 500 * See Documentation/locking/lockdep-design.rst 851 * - Documentation/locking/seqlock.rst 1042 * read_seqlock_excl() - begin a seqlock_t locking reader section 1045 * read_seqlock_excl opens a seqlock_t locking reader critical section. A 1046 * locking reader exclusively locks out *both* other writers *and* other [all …]
|
H A D | serial_core.h | 48 * Locking: none. 67 * Locking: @port->lock taken. 87 * Locking: @port->lock taken. 99 * Locking: @port->lock taken. 107 * Locking: @port->lock taken. 118 * Locking: serialized with @unthrottle() and termios modification by the 129 * Locking: serialized with @throttle() and termios modification by the 142 * Locking: none. 149 * Locking: @port->lock taken. 157 * Locking: @port->lock taken. [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_locked_port.sh | 100 check_err $? "Ping did not work before locking port" 105 check_fail $? "Ping worked after locking port, but before adding FDB entry" 110 check_err $? "Ping did not work after locking port and adding FDB entry" 131 check_err $? "Ping through vlan did not work before locking port" 135 check_fail $? "Ping through vlan worked after locking port, but before adding FDB entry" 140 check_err $? "Ping through vlan did not work after locking port and adding FDB entry" 159 check_err $? "Ping6 did not work before locking port" 164 check_fail $? "Ping6 worked after locking port, but before adding FDB entry" 168 check_err $? "Ping6 did not work after locking port and adding FDB entry" 185 check_err $? "Ping did not work before locking port"
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | bridge_locked_port.sh | 100 check_err $? "Ping did not work before locking port" 105 check_fail $? "Ping worked after locking port, but before adding FDB entry" 110 check_err $? "Ping did not work after locking port and adding FDB entry" 131 check_err $? "Ping through vlan did not work before locking port" 135 check_fail $? "Ping through vlan worked after locking port, but before adding FDB entry" 140 check_err $? "Ping through vlan did not work after locking port and adding FDB entry" 159 check_err $? "Ping6 did not work before locking port" 164 check_fail $? "Ping6 worked after locking port, but before adding FDB entry" 168 check_err $? "Ping6 did not work after locking port and adding FDB entry" 185 check_err $? "Ping did not work before locking port"
|
/openbmc/linux/fs/gfs2/ |
H A D | Kconfig | 22 the locking module below. Documentation and utilities for GFS2 can 29 bool "GFS2 DLM locking" 33 Multiple node locking module for GFS2 35 Most users of GFS2 will require this. It provides the locking
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 182 | 4 # Test image locking for POSIX locks 52 _launch_qemu -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \ 58 -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \ 90 'locking': 'on' 116 'locking': 'on' 151 _launch_qemu -drive file=$TEST_IMG,if=none,file.locking=on
|
/openbmc/linux/fs/ocfs2/ |
H A D | ocfs2_lockingver.h | 5 * Defines OCFS2 Locking version values. 14 * The protocol version for ocfs2 cluster locking. See dlmglue.c for 17 * 1.0 - Initial locking version from ocfs2 1.4.
|
/openbmc/linux/drivers/ata/ |
H A D | libata-sff.c | 61 * LOCKING: 81 * LOCKING: 113 * LOCKING: 136 * LOCKING: 153 * LOCKING: 202 * LOCKING: 224 * LOCKING: 252 * LOCKING: 284 * LOCKING: 312 * LOCKING: [all …]
|
/openbmc/linux/block/ |
H A D | opal_proto.h | 187 /* locking tokens */ 197 /* locking info table */ 218 /* Locking state for a locking range */ 328 * Locking Feature Descriptor. Contains flags indicating support for the 329 * locking features described in the OPAL specification. The names match the 342 * bit 1: locking enabled 343 * bit 0: locking supported
|
/openbmc/openbmc/poky/documentation/dev-manual/ |
H A D | bblock.rst | 3 Locking and Unlocking Recipes Using ``bblock`` 32 Locking tasks and recipes 43 Locking a recipe means locking all tasks of the recipe. If you need to 83 Locking mechanism
|
/openbmc/phosphor-host-ipmid/user_channel/ |
H A D | shadowlock.hpp | 20 * @brief Responsible for locking and unlocking /etc/shadow 35 lg2::error("Locking Shadow failed"); in Lock() 43 lg2::error("Un-Locking Shadow failed"); in ~Lock()
|
/openbmc/linux/Documentation/kernel-hacking/ |
H A D | locking.rst | 4 Unreliable Guide To Locking 12 Welcome, to Rusty's Remarkably Unreliable Guide to Kernel Locking 13 issues. This document describes the locking systems in the Linux Kernel 18 fundamentals of concurrency and locking for SMP. 94 Locking in the Linux Kernel 97 If I could give you one piece of advice on locking: **keep it simple**. 134 You should always test your locking code with ``CONFIG_SMP`` and 136 because it will still catch some kinds of locking bugs. 141 Locking Only In User Context 161 Locking Between User Context and Softirqs [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | dmaengine.h | 66 * non-NULL. No locking is required. 111 * No locking is required. 129 * Locking is dependent on the driver. 157 * Locking is dependent on the driver. 174 * No locking is required.
|
/openbmc/linux/Documentation/networking/devlink/ |
H A D | index.rst | 7 Locking chapter 11 locking. Drivers can use the existing ``devlink_*`` set of APIs, or 12 new APIs prefixed by ``devl_*``. The older APIs handle all the locking
|