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

12345678

/darwin-on-arm/xnu/iokit/Kernel/
H A DIOCatalogue.cpp178 lock = gIOCatalogLock;
210 IORWLockRead(lock);
226 IORWLockUnlock(lock);
258 IORWLockRead(lock);
272 IORWLockUnlock(lock);
320 IORWLockWrite(lock);
377 IORWLockUnlock(lock);
417 IORWLockWrite(lock);
438 IORWLockUnlock(lock);
618 IORWLockWrite(lock);
[all...]
H A DIOConditionLock.cpp144 int IOConditionLock::lock() function in class:IOConditionLock
170 /* First get the actual lock */
171 thread_res = lock();
173 break; // Failed to acquire lock
176 break; // Hold lock and condition is expected value
184 unlock(); // Release lock and sleep
195 IOUnlock(cond_interlock); /* release the lock */
/darwin-on-arm/xnu/osfmk/i386/
H A Di386_lock.s149 * Routines for general lock debugging.
153 * Checks for expected lock types and calls "panic" on
172 * (since a mutex lock may context switch, holding a simplelock
203 2: String "Attempt to recursively lock a non-recursive lock"; \
260 * a pointer into the lock code function body. At that
290 movl lck,4(%esp) /* copy lock pointer to arg 1 */ ; \
353 * Initialize a hardware lock.
356 LOAD_HW_LOCK_REGISTER /* fetch lock pointer */
357 HW_LOCK_MOV_WORD $0, (HW_LOCK_REGISTER) /* clear the lock */
[all...]
H A Dfpu.c505 simple_lock(&pcb->lock);
510 simple_unlock(&pcb->lock);
520 simple_lock(&pcb->lock);
525 simple_unlock(&pcb->lock);
585 simple_unlock(&pcb->lock);
623 simple_lock(&pcb->lock);
634 simple_unlock(&pcb->lock);
672 simple_unlock(&pcb->lock);
683 * outside agency -> no need for pcb lock
705 simple_lock(&ppcb->lock);
[all...]
H A Dthread.h74 #include <kern/lock.h>
135 decl_simple_lock_data(,lock); /* protects ifps and ids */
H A DMakefile21 lock.h \
/darwin-on-arm/xnu/iokit/IOKit/
H A DIOConditionLock.h46 IOLock * cond_interlock; // condition var Simple lock
49 IOLock * sleep_interlock; // sleep lock Simple lock
59 virtual bool tryLock(); // acquire lock, no waiting
60 virtual int lock(); // acquire lock (enter critical section)
61 virtual void unlock(); // release lock (leave critical section)
67 virtual int lockWhen(int condition); // acquire lock when condition
68 virtual void unlockWith(int condition); // set condition & release lock
/darwin-on-arm/xnu/libkern/i386/
H A DOSAtomic.s41 lock
62 lock
88 lock
106 lock
/darwin-on-arm/xnu/osfmk/arm/
H A DMakefile12 locks.h lock.h cpu_number.h \
H A Dthread.h40 #include <kern/lock.h>
/darwin-on-arm/xnu/osfmk/i386/commpage/
H A Dpthreads.s51 #define KSYN_MLWAIT 301 /* mutex lock wait syscall */
88 /* Internal routine to handle pthread mutex lock operation. This is in the PFZ.
103 /* lock is available (if we act fast) */
106 lock
107 cmpxchgl %edx,PTHRW_LVAL(%edi) // try to acquire lock for real
131 lock
132 cmpxchgl %edx,PTHRW_LVAL(%edi) // try to update lock status atomically
166 /* Internal routine to handle pthread mutex lock operation. This is in the PFZ.
181 testl %eax,%ecx // can we acquire the lock?
184 /* lock i
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Daffinity.h38 #include <kern/lock.h>
H A Dtimer_call.h47 decl_simple_lock_data( ,lock); /* protects call_entry queue */
51 call_entry queue's lock */
H A Dzalloc.h77 #include <kern/lock.h>
100 decl_lck_mtx_data(,lock) /* zone lock */
102 lck_attr_t lock_attr; /* zone lock attribute */
103 lck_grp_t lock_grp; /* zone lock group */
104 lck_grp_attr_t lock_grp_attr; /* zone lock group attribute */
321 lck_mtx_lock_spin(&(zone)->lock); \
326 lck_mtx_unlock(&(zone)->lock); \
H A DMakefile28 lock.h \
H A Dxpr.c62 #include <kern/lock.h>
/darwin-on-arm/xnu/osfmk/machine/
H A DMakefile15 lock.h \
/darwin-on-arm/xnu/libsyscall/custom/
H A D__getpid.s68 lock
95 lock
132 swp r2, r1, [r3] // look at the value, lock others out
/darwin-on-arm/xnu/osfmk/arm64/
H A Dpmap.c48 #include <kern/lock.h>
132 simple_lock(&(pmap)->lock); \
141 simple_unlock(&(pmap)->lock); \
152 simple_lock(&(pmap)->lock); \
164 usimple_lock_init(&pmap->lock, 0);
/darwin-on-arm/xnu/osfmk/default_pager/
H A Ddefault_pager_internal.h71 #include <kern/lock.h>
281 lck_mtx_t bs_lock; /* lock for the structure */
529 #define DPT_LOCK_INIT(lock) lck_mtx_init(&(lock), &default_pager_lck_grp, &default_pager_lck_attr)
530 #define DPT_LOCK_DESTROY(lock) lck_mtx_destroy(&(lock), &default_pager_lck_grp)
531 #define DPT_LOCK(lock) lck_mtx_lock(&(lock))
532 #define DPT_UNLOCK(lock) lck_mtx_unlock(&(lock))
[all...]
/darwin-on-arm/xnu/bsd/netat/
H A Dat_pcb.h105 atlock_t lock; member in struct:atpcb
/darwin-on-arm/xnu/osfmk/UserNotification/
H A DKUNCUserNotifications.c57 decl_lck_mtx_data(,lock) /* UNDReply lock */
64 #define UNDReply_lock(reply) lck_mtx_lock(&reply->lock)
65 #define UNDReply_unlock(reply) lck_mtx_lock(&reply->lock)
206 lck_mtx_init(&reply->lock, &LockCompatGroup, LCK_ATTR_NULL);
/darwin-on-arm/xnu/osfmk/ipc/
H A Dipc_labelh.h57 #include <kern/lock.h>
/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_map.h108 #include <kern/lock.h>
231 * The "alias" field can be updated while holding the VM map lock
233 * updated without the VM map "exclusive" lock.
305 lock_t lock; /* uni- and smp-lock */ member in struct:_vm_map
333 unsigned int color_rr; /* next color (not protected by a lock) */
448 lock_init(&(map)->lock, TRUE, 0, 0))
450 #define vm_map_lock(map) lock_write(&(map)->lock)
452 ((map)->timestamp++ , lock_write_done(&(map)->lock))
453 #define vm_map_lock_read(map) lock_read(&(map)->lock)
[all...]
/darwin-on-arm/xnu/libkern/libkern/
H A DOSAtomic.h609 * Returns false if the lock was already held by another thread, true if it took the lock successfully.
611 extern Boolean OSSpinLockTry(volatile OSSpinLock * lock);
622 extern void OSSpinLockUnlock(volatile OSSpinLock * lock);

Completed in 174 milliseconds

12345678