Searched refs:lock (Results 176 - 200 of 200) sorted by relevance

12345678

/darwin-on-arm/xnu/osfmk/i386/
H A Dlocks_i386.c57 * File: kern/lock.c
66 #include <kern/lock.h>
121 * Perform simple lock checks.
132 * of the various lock routines. However, this information
155 * Portable lock package implementation of usimple_locks.
363 panic("Spinlock acquisition timed out: lock=%p, lock owner thread=0x%lx, current_thread: %p, lock owner active on CPU 0x%x, current owner: 0x%lx", l, lowner, current_thread(), lock_cpu, (uintptr_t)l->interlock.lock_data);
432 #define USLOCK_CHECKED 0x0001 /* lock is being checked */
433 #define USLOCK_TAKEN 0x0002 /* lock ha
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dkdebug.c57 #include <sys/lock.h>
582 * now that we're behind the lock that protects
893 * try to take the lock here to synchronize with the
900 * will eventually succeed in grabbing this lock
974 * allocate lock group attribute and group
980 * allocate the lock attribute
2531 * FIXME: need to grab a lock during this?
H A Dubc_subr.c42 #include <sys/lock.h>
1639 * vnode lock should be held by the caller, otherwise an
2619 * while we validate a page, even after we release the vnode's lock.
2762 * No need to take the vnode lock here. The caller must be holding
2773 * vnode lock, for example.
H A Duipc_usrreq.c77 #include <sys/lock.h>
155 * lock pushdown
430 /* release lock to avoid deadlock (4436174) */
1189 /* Check again if the socket state changed when its lock was released */
1202 /* XXXMAC: recursive lock: SOCK_LOCK(so); */
1287 /* Avoid lock order reversals due to drop/acquire in soisconnected. */
1314 /* Avoid lock order reversals due to drop/acquire in soisconnected. */
1439 * we release all locks except the socket lock, this will avoid
1897 * allocate lock group attribute and group for udp pcb mutexes
2104 * release the file lock
[all...]
H A Dkern_credential.c64 #include <kern/lock.h>
744 * queue, since we must have the kauth resolver lock on entry to this
979 * It is safe to drop and reacquire the lock
1184 /* have to drop lock before freeing expired entry (it may be in use) */
1269 * the lock
1326 * the lock
1369 * Must be called with the identity cache lock held.
2763 * Must be called with the group cache lock held.
3110 /* lock protecting credential hash table */
4401 * lock t
[all...]
H A Dkern_event.c85 #include <kern/lock.h>
288 * kqueue/note lock attributes and implementations
291 * Most of the knote state is guarded by the object lock.
292 * the knote "inuse" count and status use the kqueue lock.
311 * Convert a kq lock to a knote use referece.
331 * Convert a kq lock to a knote use referece,
358 * Convert from a knote use reference back to kq lock.
364 * still alive - but the kqueue lock is taken
384 * Convert a kq lock to a knote drop referece.
656 * Timer filter lock i
[all...]
H A Dkern_proc.c88 #include <sys/lock.h>
208 * with the list lock
1194 /* Re-check after acquiring the lock */
1502 /* allocate lctx lock group attribute and group */
1507 /* Allocate lctx lock attribute */
1570 * or by having the all-login-context lock held) and
1598 * the alllctx lock.
2328 * Safe to hold lock due to refcount on pgrp
2442 * Safe to hold lock due to refcount on pgrp
H A Dproc_info.c59 #include <kern/lock.h>
246 /* racy but list lock is held */
H A Dpthread_synch.c61 #include <sys/lock.h>
580 * the timestamp is updated atomically w/o holding the workqueue lock
597 * serialized against us looking at it (i.e. we don't hold the workq lock)
641 * because workqueue_callback now runs w/o taking the workqueue lock
649 * it is always protected by the workq lock... WQ_ATIMER_RUNNING is evaluated
651 * w/o holding the workq lock...
671 * the workq lock will protect us from seeing WQ_EXITING change state, but we
741 * dropping the workqueue lock in all cases
823 * 'workqueue_addnewthread' drops the workqueue lock
865 * dropping the workqueue lock i
[all...]
H A Duipc_syscalls.c80 #include <kern/lock.h>
610 /* Get socket address now before we obtain socket lock */
860 * We check the state without holding the socket lock;
1144 * We check the state without holding the socket lock;
H A Dkern_descrip.c95 #include <kern/lock.h>
191 * Description: Initialize the file lock group and the uipc and flist locks
202 /* allocate file lock group attribute and group */
207 /* Allocate file lock attribute */
220 * Parameters: p Process to take the lock on
224 * Notes: The lock is initialized in forkproc() and destroyed in
249 * Description: Unlock the lock previously locked by a call to proc_fdlock()
251 * Parameters: p Process to drop the lock on
860 /* Copy in the lock structure */
938 /* Copy in the lock structur
[all...]
H A Dkern_sysctl.c116 #include <kern/lock.h>
1207 /* This is very racy but list lock is held.. Hmmm. */
H A Dpthread_support.c50 #include <sys/lock.h>
246 lck_mtx_t kw_lock; /* mutex lock protecting this structure */
259 #define PTH_RWL_EBIT 0x02 /* exclusive lock in progress */
278 #define PTHRW_RWL_INIT PTH_RWL_IBIT /* reset state on the lock bits (U)*/
289 #define PTHRW_RWS_INIT PTH_RWS_SBIT /* reset on the lock bits (U)*/
293 #define PTHRW_RWS_INIT PTH_RWS_SBIT /* reset on the lock bits (U)*/
825 /* got preposted lock */
1337 * consuming a prepost higher than our lock sequence is valid, but
1405 /* lock dropped */
1623 /* first to notice the reset of the lock, clea
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Drtsock.c77 #include <kern/lock.h>
883 * lock across ifa_ifwithroute since the lookup done
1291 * Holding ifnet lock here prevents the link address
1293 * lock. The link address is always present; it's
1358 info.rti_info[RTAX_IFP] = ifp->if_lladdr->ifa_addr; /* lladdr doesn't need lock */
1534 * Holding ifnet lock here prevents the link address from
1535 * changing contents, so no need to hold the ifa lock.
1663 * Holding ifnet lock here prevents the link address from
1664 * changing contents, so no need to hold the ifa lock.
1757 * Holding ifnet lock her
[all...]
H A Dbridgestp.c77 #include <sys/lock.h>
H A Dpfvar.h89 #include <kern/lock.h>
H A Droute.c75 #include <kern/lock.h>
104 * lock (rnh_lock) and the per-entry lock (rt_lock); the latter is a mutex that
109 * The global routing lock is used to serialize all accesses to the radix
115 * The per-route entry lock is used to serialize accesses to several routing
116 * entry fields (more details below.) Acquiring and releasing this lock is
120 * acquired first in order to maintain lock ordering. It is not a requirement
122 * acquired in succession, the correct lock ordering must be followed.
128 * - Routing table lock (rnh_lock).
136 * - Routing entry lock (rt_loc
[all...]
H A Dif_bridge.c124 #include <sys/lock.h>
977 /* can free the attributes once we've allocated the group lock */
1825 /* Respect lock ordering with DLIL lock */
1856 /* Respect lock ordering with DLIL lock */
1976 * Respect lock ordering with DLIL lock for the following operations
3523 * NOTE: Releases the lock on return.
4069 * NOTE: Releases the lock o
[all...]
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsm.c60 #include <kern/lock.h>
/darwin-on-arm/xnu/osfmk/kern/
H A Dtask_policy.c122 * This routine should always be called with the task lock held.
1546 lck_mtx_assert(&task->lock, LCK_MTX_ASSERT_OWNED);
1844 /* pidresume does drop task lock,so no need to have locked version */
/darwin-on-arm/xnu/bsd/netinet/
H A Dtcp_input.c726 sorwakeup(so); /* done with socket lock held */
2352 sowwakeup(so); /* has to be done with socket lock held */
2669 /* XXXMAC: recursive lock: SOCK_LOCK(so); */
4302 lck_mtx_lock(&ndi->lock);
4308 lck_mtx_unlock(&ndi->lock);
4729 /* do not try to lock the inp in in_pcb_checkstate
4730 * because the lock is already held in some other thread.
4768 * doesn't require a lock, it could have happened while
4769 * we are holding the lock. This pcb will have to
4778 * acquire the pcbinfo lock i
[all...]
/darwin-on-arm/xnu/osfmk/console/
H A Dvideo_console.c99 #include <kern/lock.h>
513 /* Init our lock */
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_bio.c94 #include <kern/lock.h>
1713 * this lock protects the queue manipulation
1744 * this lock protects the queue manipulation
1943 * allocate lock group attribute and group
1949 * allocate the lock attribute
2433 * outside of the lock... we only want the guy going
2724 * by the lock, and since we have not yet cleared B_BUSY, we need
2725 * to check it while holding the lock to insure that one of us
3347 * Increment count now as lock
4090 * trying to grab a task related lock
[all...]
H A Dvfs_subr.c86 #include <sys/lock.h>
463 * point doing it. Even if the lock is taken the
487 * point doing it. Even if the lock is taken the
541 * called with mount lock held
567 /* called with mount lock held */
820 /* always called with mount lock held */
873 * lock granted when unmounting, the only place that a
875 * exclusive lock at the end of dounmount.
1438 /* We dropped the lock, someone could have added */
1480 * Get a reference on a particular vnode and lock i
[all...]
/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_object.c82 #include <kern/lock.h>
112 * lock.
248 * A spin lock (accessed by routines
249 * vm_object_cache_{lock,lock_try,unlock}) governs the
254 * must also lock the cache.
257 * from the reference mechanism, so that the lock need
556 * The lock will be initialized for each allocated object in
729 * initialze the vm_object lock world
799 * object (cache lock + exclusive object lock)
[all...]

Completed in 337 milliseconds

12345678