/darwin-on-arm/xnu/osfmk/kern/ |
H A D | clock_oldops.c | 42 #include <kern/lock.h> 164 * Macros to lock/unlock clock system.
|
H A D | sched_fixedpriority.c | 45 #include <kern/lock.h> 484 * Thread is on a run queue and we have a lock on 493 * lock the run queue.
|
H A D | sched_grrr.c | 45 #include <kern/lock.h> 403 * Thread is on a run queue and we have a lock on 412 * lock the run queue. 947 * lock the run queue.
|
H A D | zalloc.c | 349 (void) lck_mtx_sleep(&(zone)->lock, LCK_SLEEP_SPIN, (event_t)(zone), THREAD_UNINT); 359 lck_mtx_init_ext(&(zone)->lock, &(zone)->lock_ext, \ 363 #define lock_try_zone(zone) lck_mtx_try_lock_spin(&zone->lock) 492 * The allocation log and all the related variables are protected by the zone lock for the zone_of_interest 596 /* Times zleak_log returned false due to not being able to acquire the lock */ 768 * path accesses the table without a lock if we're active. 921 /* Double-checked locking: check to find out if we're interested, lock, check to make 922 * sure it hasn't changed, then modify it, and release the lock. 926 /* if the allocation was the one, grab the lock, check again, then delete it */ 1735 * when we obtain the lock [all...] |
H A D | task.c | 433 lck_mtx_init(&new_task->lock, &task_lck_grp, &task_lck_attr); 637 lck_mtx_destroy(&task->lock, &task_lck_grp); 971 * Same as the internal routine above, except that is must lock 1082 * Same as the internal routine above, except that it must lock 2376 * Destroy owned lock sets 2490 * This routine is called always with task lock held. 2492 * operates on it under the task lock held.
|
H A D | ledger.c | 32 #include <kern/lock.h> 94 * safely dereferenced if you hold either the lock or the inuse bit. The 96 * table without requiring a full lock to be acquired on each lookup.
|
/darwin-on-arm/xnu/osfmk/vm/ |
H A D | vm_object.h | 81 #include <kern/lock.h> 315 /* hold object lock when altering */ 941 * check if anyone is holding the lock, but the holder may not necessarily
|
H A D | vm_page.h | 74 #include <kern/lock.h> 153 * Fields in this structure are locked either by the lock on the 154 * object that the page belongs to (O) or by the lock on the page 156 * change that field; holding either lock is sufficient to read.] 171 * by the "page queues" lock. 202 * by the "VM object" lock. 211 * VM object "shared" lock. See vm_fault_enter(). 213 * can be updated without holding the VM object "exclusive" lock. 670 * protected by the object lock. 762 * the global vm_page_queue_lock at this point... we still need to take the local lock [all...] |
H A D | vm_kern.c | 69 #include <kern/lock.h> 554 /* by grabbing the object lock before unlocking the map */
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | pmap.c | 104 #include <kern/lock.h> 211 * Index into pv_head table, its lock bits, and the modify/reference and managed bits 763 simple_lock_init(&kernel_pmap->lock, 0); 871 * Allocate memory for the pv_head_table and its lock bits, 1333 simple_lock_init(&p->lock, 0); 1458 * while the system pmap lock is held. It is used by 1466 * system-wide pmap lock is held) this not serviced by 1841 /* Take the oject lock (mutex) before the PMAP_LOCK (spinlock) */ 1872 pml4p = pmap64_pml4(map, vaddr); /* refetch under lock */ 1931 /* Take the oject lock (mute [all...] |
H A D | cpu_threads.c | 36 #include <i386/lock.h>
|
H A D | mp_desc.c | 71 #include <i386/lock.h> 217 * are separate to avoid lock contention: the i386 uses locked
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_resource.c | 100 #include <kern/lock.h> 940 /* No lock on proc is held for this.. */ 986 * No need to lock "p": this does not need to be
|
H A D | kpi_socket.c | 45 #include <kern/lock.h> 132 * Temporarily drop the listening socket's lock before we 480 error = sogetopt(sock, &sopt); /* will lock socket */ 491 return soioctl(sock, request, argp, kernproc); /* will lock socket */ 511 return sosetopt(sock, &sopt); /* will lock socket */ 655 error = sogetopt(sock, &sopt); /* will lock socket */ 666 return solisten(sock, backlog); /* will lock socket */ 1064 * context of that callback, because we hold the listener's lock across
|
H A D | kern_sig.c | 89 #include <sys/lock.h> 104 #include <kern/lock.h> 287 * when called with zombie arg, list lock is held 2052 * enters switch with sig_proc lock held but dropped when 2227 * Try to grab the signal lock. 2673 * Try to grab the signal lock.
|
H A D | kern_memorystatus.c | 34 #include <kern/lock.h> 486 /* Make sure we're called with the list lock held */ 509 /* Make sure we're called with the list lock held */ 529 /* Returns with the lock taken if found */ 979 /* Make sure we're called with the list lock held */ 982 /* Now, acquire the exit list lock... */ 1121 continue; // with lock held 1228 continue; // with lock held 1414 continue; // with lock held 1419 continue; // with lock hel [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | mbuf.h | 87 #include <sys/lock.h> 824 /* Times mleak_log returned false because couldn't acquire the lock */
|
/darwin-on-arm/xnu/osfmk/ipc/ |
H A D | ipc_port.c | 78 #include <kern/lock.h> 691 * armed, don't bother to lock the port. 960 * The guarantee: lock port while the entire chain is locked.
|
/darwin-on-arm/xnu/osfmk/profiling/i386/ |
H A D | profile-asm.s | 146 * Rewrite gprof caching to be faster & not need a lock. 150 * Conditionally use lock prefix. 210 #define DO_LOCK 0 /* use lock; in front of increments */ 214 #define LOCK_STATS DO_LOCK /* update stats with lock set */ 235 * Turn on the use of the lock prefix if desired. 240 #define LOCK lock; 308 LCL(A_lock) = LCL(A_plist)+4 /* lock word */ 738 SDADDNEG(%edx,V_acontext_locked(%ebx)) /* increment counter if lock was held */ 851 movl $1,A_lock(%ecx) /* set lock */
|
H A D | profile-md.c | 324 context->lock = 0;
|
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace.c | 275 * probe context is lock-free -- synchronization is handled via the 284 * The lock ordering between these three locks is dtrace_meta_lock before 292 * role as a coarse-grained lock; it is acquired before both of these locks. 300 static kmutex_t dtrace_lock; /* probe state lock */ 301 static kmutex_t dtrace_provider_lock; /* provider state lock */ 302 static kmutex_t dtrace_meta_lock; /* meta-provider state lock */ 321 static lck_mtx_t dtrace_lock; /* probe state lock */ 322 static lck_mtx_t dtrace_provider_lock; /* provider state lock */ 323 static lck_mtx_t dtrace_meta_lock; /* meta-provider state lock */ 324 static lck_rw_t dtrace_dof_mode_lock; /* dof mode lock */ [all...] |
H A D | dtrace_glue.c | 293 decl_simple_lock_data(,lock);
|
/darwin-on-arm/xnu/bsd/miscfs/devfs/ |
H A D | devfs_vnops.c | 89 #include <sys/lock.h> 217 * if at end of path and rewriting (RENAME and LOCKPARENT), lock target 252 /* okay to look at directory vnodes ourside devfs lock as they are not aliased */ 279 /* Do potential vnode allocation here inside the lock 329 * on and lock the node, being careful with ".". 380 * and parent directories are removed before the lock for the 881 /* can lookup dnode safely for tdvp outside of devfs lock as it is not aliased */
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ip6_fw.c | 100 #include <sys/lock.h>
|
/darwin-on-arm/xnu/bsd/vm/ |
H A D | vm_unix.c | 46 #include <kern/lock.h> 1656 SYSCTL_UINT(_vm, OID_AUTO, pageout_cleaned_nolock, CTLFLAG_RD | CTLFLAG_LOCKED, &vm_pageout_cleaned_nolock, 0, "Cleaned pages no-lock (deactivated)");
|