/freebsd/lib/libsys/ |
H A D | lockf.3 | 45 function allows sections of a file to be locked with advisory-mode locks. 48 from other processes which attempt to lock the locked file section will 71 unlock locked sections 91 argument is the number of contiguous bytes to be locked or 93 The section to be locked or unlocked starts at the current 102 file offset is locked (that is, from the current offset through the 105 The sections locked with 110 locked section for the same process. 112 locked sections would occur, the sections are combined into a single 113 locked section. [all …]
|
H A D | mlock.2 | 55 system call unlocks pages previously locked by one or more 73 The physical pages remain in memory until all locked mappings for the pages 75 Multiple processes may have the same physical pages locked via their own 77 A single process may likewise have pages multiply-locked via different virtual 84 Locked mappings are not inherited by the child process after a 111 If the call succeeds, all pages in the range become locked (unlocked); 112 otherwise the locked status of all pages in the range remains unchanged. 128 for locked memory. 169 The per-process and system-wide resource limits of locked memory apply 170 to the amount of virtual memory locked, not the amount of locked physical [all …]
|
H A D | mlockall.2 | 88 call unlocks any locked memory regions in the process address space. 91 call will not be locked. 94 succeeded and all pages in the range have either been locked or unlocked. 95 A return value of \-1 indicates an error occurred and the locked 110 limit for locked memory. 113 could not be locked when the call was made. 139 The per-process and system-wide resource limits of locked memory apply 140 to the amount of virtual memory locked, not the amount of locked physical 142 Hence two distinct locked mappings of the same physical page counts as
|
H A D | fcntl.2 | 383 is the number of consecutive bytes to be locked. 417 is zero, the entire file is locked. 489 If a file is locked by a process through 491 any record within the file will be seen as locked 501 if the process holding a blocking lock previously locked the 514 A potential for deadlock occurs if a process controlling a locked region 515 is put to sleep by attempting to lock the locked region of another process. 516 This implementation detects that sleeping until a locked region is unlocked 559 and the segment of a file to be locked is already 560 exclusive-locked by another process; [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_mutex.cpp | 55 // The table defines a static mutex type hierarchy (what mutex types can be locked 67 // Adjacency matrix of what mutexes can be locked under what mutexes. 148 LockDesc locked[kMutexTypeMax]; member 154 // Find the last locked mutex type. in Lock() 159 if (locked[i].seq == 0) in Lock() 161 CHECK_NE(locked[i].seq, max_seq); in Lock() 162 if (max_seq < locked[i].seq) { in Lock() 163 max_seq = locked[i].seq; in Lock() 169 CHECK_EQ(locked[type].seq, max_seq); in Lock() 170 CHECK(locked[type].pc); in Lock() [all …]
|
H A D | sanitizer_mutex.h | 91 // The leaf mutexes can be locked under any other non-leaf mutex, 92 // but no other mutex can be locked while under a leaf mutex. 94 // Multiple mutexes of this type can be locked at the same time. 110 // The table fixes what mutexes can be locked under what mutexes. 112 // then Bar mutex can be locked while under Foo mutex. 172 bool locked = (state & (kWriterLock | kReaderLockMask)) != 0; in Lock() local 173 if (LIKELY(!locked)) { in Lock() 174 // The mutex is not read-/write-locked, try to lock. in Lock() 192 if (LIKELY(!locked)) in Lock() 193 return; // We've locked the mutex. in Lock() [all …]
|
H A D | sanitizer_deadlock_detector2.cpp | 72 ThreadMutex locked[kMaxNesting]; member 206 ThreadMutex *tm = <->locked[lt->nlocked++]; in MutexBeforeLock() 219 u32 id1 = lt->locked[i].id; in MutexBeforeLock() 220 u32 stk1 = lt->locked[i].stk; in MutexBeforeLock() 293 ThreadMutex *tm = <->locked[lt->nlocked++]; in MutexAfterLock() 315 if (cb->lt->locked[i].id == m->id) { in MutexBeforeUnlock() 316 lt->locked[i] = lt->locked[last]; in MutexBeforeUnlock() 331 // Remove the mutex from lt->locked if there. in MutexDestroy() 334 if (lt->locked[i].id == m->id) { in MutexDestroy() 335 lt->locked[i] = lt->locked[last]; in MutexDestroy()
|
/freebsd/contrib/sendmail/libsmutil/ |
H A D | t-lockfile.c | 126 ** delay -- how long to keep file locked? 148 bool locked; local 153 locked = lockfile(fd, filename, "[owner]", LOCK_EX); 154 if (!locked) 172 locked = lockfile(fd, filename, "[owner]", LOCK_UN); 173 if (!locked) 190 ** CHKLCK -- check whether fd is locked (only for fcntl()) 196 ** delay -- how long to keep file locked? 199 ** 0 if not locked 235 ** delay -- how long is file locked by owner? [all …]
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_lock.c | 78 bool locked = false; in __ttm_read_lock() local 86 locked = true; in __ttm_read_lock() 88 return locked; in __ttm_read_lock() 116 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) in __ttm_read_trylock() argument 120 *locked = false; in __ttm_read_trylock() 129 *locked = true; in __ttm_read_trylock() 141 bool locked; in ttm_read_trylock() local 152 while (!__ttm_read_trylock(lock, &locked)) { in ttm_read_trylock() 159 MPASS(!locked || ret == 0); in ttm_read_trylock() 162 return (locked) ? 0 : -EBUSY; in ttm_read_trylock() [all …]
|
/freebsd/sys/security/mac/ |
H A D | mac_net.c | 303 int locked; in mac_ifnet_create() local 308 MAC_IFNET_LOCK(ifp, locked); in mac_ifnet_create() 310 MAC_IFNET_UNLOCK(ifp, locked); in mac_ifnet_create() 341 int locked; in mac_ifnet_create_mbuf_impl() local 345 MAC_IFNET_LOCK(ifp, locked); in mac_ifnet_create_mbuf_impl() 348 MAC_IFNET_UNLOCK(ifp, locked); in mac_ifnet_create_mbuf_impl() 357 int error, locked; in mac_bpfdesc_check_receive() local 365 MAC_IFNET_LOCK(ifp, locked); in mac_bpfdesc_check_receive() 369 MAC_IFNET_UNLOCK(ifp, locked); in mac_bpfdesc_check_receive() 381 int error, locked; in mac_ifnet_check_transmit_impl() local [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/ |
H A D | core.c | 40 static volatile int locked; variable 103 assert(locked == 0); in sodium_crit_enter() 104 locked = 1; in sodium_crit_enter() 112 if (locked == 0) { in sodium_crit_leave() 118 locked = 0; in sodium_crit_leave() 134 assert(locked == 0); in sodium_crit_enter() 135 locked = 1; in sodium_crit_enter() 145 if (locked == 0) { in sodium_crit_leave() 151 locked = 0; in sodium_crit_leave()
|
/freebsd/usr.sbin/pw/tests/ |
H A D | pw_lock_test.sh | 11 atf_check -s exit:0 -o match:"^test:\*LOCKED\*\*:1001:" \ 12 grep "^test:\*LOCKED\*\*:1001:" $HOME/master.passwd 23 atf_check -s exit:0 -o match:"^test:\*LOCKED\*\*:1001:" \ 24 grep "^test:\*LOCKED\*\*:1001:" $HOME/master.passwd 31 atf_check -s exit:0 -o match:"^1001:\*LOCKED\*\*:1002:" \ 32 grep "^1001:\*LOCKED\*\*:1002:" $HOME/master.passwd
|
/freebsd/sys/contrib/ck/include/spinlock/ |
H A D | anderson.h | 42 unsigned int locked; member 64 slots[0].locked = false; in ck_spinlock_anderson_init() 67 slots[i].locked = true; in ck_spinlock_anderson_init() 97 r = ck_pr_load_uint(&lock->slots[position].locked); in ck_spinlock_anderson_locked() 138 while (ck_pr_load_uint(&lock->slots[position].locked) == true) in ck_spinlock_anderson_lock() 142 ck_pr_store_uint(&lock->slots[position].locked, true); in ck_spinlock_anderson_lock() 163 ck_pr_store_uint(&lock->slots[position].locked, false); in ck_spinlock_anderson_unlock()
|
H A D | mcs.h | 39 unsigned int locked; member 62 node->locked = true; in ck_spinlock_mcs_trylock() 91 node->locked = true; in ck_spinlock_mcs_lock() 107 while (ck_pr_load_uint(&node->locked) == true) in ck_spinlock_mcs_lock() 151 ck_pr_store_uint(&next->locked, false); in ck_spinlock_mcs_unlock()
|
/freebsd/share/man/man9/ |
H A D | VOP_LOOKUP.9 | 47 The locked vnode of the directory to search. 49 The address of a variable where the resulting locked vnode should be stored. 73 Convert a component of a pathname into a pointer to a locked vnode. 122 should be locked on entry and exit, regardless of error condition. 123 If an entry is found in the directory, it will be returned locked. 127 set to the locked vnode of the file if the component is found.
|
H A D | VOP_CREATE.9 | 57 The locked vnode of the directory. 59 The address of a variable where the resulting locked vnode should be stored. 74 will be locked on entry and must remain locked on return. 75 If the call is successful, the new object will be returned locked.
|
/freebsd/sbin/ipf/ipfs/ |
H A D | ipfs.8 | 44 \fIkeep state\fP to be locked (modification prevented) and then saved to disk, 82 kernel. This requires the state tables to have already been locked 87 This requires the state tables to have already been locked 95 option. The state tables are locked at the beginning of this 103 option. The state tables are locked at the beginning of this
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-mux-gpmux.txt | 31 - mux-locked: If present, explicitly allow unrelated I2C transactions on the 41 If mux-locked is not present, the multiplexer is assumed to be parent-locked. 44 The properties of mux-locked and parent-locked multiplexers are discussed 65 mux-locked;
|
H A D | i2c-mux-gpmux.yaml | 49 mux-locked: 63 If mux-locked is not present, the multiplexer is assumed to be parent-locked. 66 The properties of mux-locked and parent-locked multiplexers are discussed 89 mux-locked;
|
/freebsd/crypto/openssh/ |
H A D | platform.c | 202 /* returns 1 if account is locked */ 206 int locked = 0; in platform_locked_account() local 228 /* check for locked account */ in platform_locked_account() 232 locked = 1; in platform_locked_account() 237 locked = 1; in platform_locked_account() 241 locked = 1; in platform_locked_account() 249 return locked; in platform_locked_account()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 94 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT() local 106 std::lock_guard<sys::Mutex> locked(lock); in addModule() local 115 std::lock_guard<sys::Mutex> locked(lock); in removeModule() local 142 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache() local 149 std::lock_guard<sys::Mutex> locked(lock); in emitObject() local 191 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule() local 239 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules() local 259 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject() local 274 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule() local 301 std::lock_guard<sys::Mutex> locked(lock); in findModuleForSymbol() local [all …]
|
/freebsd/lib/libpmc/pmu-events/arch/x86/broadwellx/ |
H A D | other.json | 35 "BriefDescription": "Cycles when L1 and L2 are locked due to UC or split lock", 40 …L1 and L2 are locked due to a UC lock or split lock. A lock is asserted in case of locked memory a…
|
/freebsd/lib/libpmc/pmu-events/arch/x86/broadwell/ |
H A D | other.json | 35 "BriefDescription": "Cycles when L1 and L2 are locked due to UC or split lock", 40 …L1 and L2 are locked due to a UC lock or split lock. A lock is asserted in case of locked memory a…
|
/freebsd/lib/libpmc/pmu-events/arch/x86/broadwellde/ |
H A D | other.json | 35 "BriefDescription": "Cycles when L1 and L2 are locked due to UC or split lock", 40 …L1 and L2 are locked due to a UC lock or split lock. A lock is asserted in case of locked memory a…
|
/freebsd/share/man/man4/ |
H A D | uart.4 | 247 may be locked by setting the corresponding value in the lock-state 261 locked to prevent buggy programs from changing them. 262 E.g., CRTSCTS should be locked on for devices that support 265 CLOCAL should be locked on for devices that do not support carrier. 266 HUPCL may be locked off if you do not 269 if something is locked to the wrong state, and things should not 270 be locked for devices that support more than one setting. 271 The CLOCAL flag on callin ports should be locked off for logins
|