/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IOWorkLoop.cpp | 224 // in this case disable all of the event source, mark the loop 227 // benefit of our event sources so we can disable them cleanly. 240 IOEventSource *event, *next; local 242 for (event = eventChain; event; event = next) { 243 next = event->getNext(); 244 event->setWorkLoop(0); 245 event->setNext(0); 246 event 300 IOEventSource *event; local 311 IOEventSource *event; local 324 IOEventSource *event; local 333 IOEventSource *event; local 473 sleepGate(void *event, UInt32 interuptibleType) argument 482 sleepGate(void *event, AbsoluteTime deadline, UInt32 interuptibleType) argument 491 wakeupGate(void *event, bool oneThread) argument 532 IOEventSource *event, *next; local 546 IOEventSource *event, *next; local 567 IOEventSource *event, *next; local 584 IOEventSource *event, *next; local [all...] |
H A D | IOEventSource.cpp | 115 int IOEventSource::sleepGate(void *event, UInt32 type) argument 119 res = workLoop->sleepGate(event, type); 124 int IOEventSource::sleepGate(void *event, AbsoluteTime deadline, UInt32 type) argument 128 res = workLoop->sleepGate(event, deadline, type); 133 void IOEventSource::wakeupGate(void *event, bool oneThread) { workLoop->wakeupGate(event, oneThread); } argument
|
H A D | IOLocks.cpp | 61 int IOLockSleep( IOLock * lock, void *event, UInt32 interType) argument 63 return (int) lck_mtx_sleep(lock, LCK_SLEEP_DEFAULT, (event_t) event, (wait_interrupt_t) interType); 66 int IOLockSleepDeadline( IOLock * lock, void *event, argument 69 return (int) lck_mtx_sleep_deadline(lock, LCK_SLEEP_DEFAULT, (event_t) event, 73 void IOLockWakeup(IOLock * lock, void *event, bool oneThread) argument 75 thread_wakeup_prim((event_t) event, oneThread, THREAD_AWAKENED); 182 int IORecursiveLockSleep(IORecursiveLock *_lock, void *event, UInt32 interType) argument 192 res = lck_mtx_sleep(lock->mutex, LCK_SLEEP_DEFAULT, (event_t) event, (wait_interrupt_t) interType); 203 int IORecursiveLockSleepDeadline( IORecursiveLock * _lock, void *event, argument 214 res = lck_mtx_sleep_deadline(lock->mutex, LCK_SLEEP_DEFAULT, (event_t) event, 226 IORecursiveLockWakeup(IORecursiveLock *, void *event, bool oneThread) argument [all...] |
H A D | IOCommandGate.cpp | 239 IOReturn IOCommandGate::commandSleep(void *event, UInt32 interruptible) argument 244 return sleepGate(event, interruptible); 247 IOReturn IOCommandGate::commandSleep(void *event, AbsoluteTime deadline, UInt32 interruptible) argument 252 return sleepGate(event, deadline, interruptible); 255 void IOCommandGate::commandWakeup(void *event, bool oneThread) argument 257 wakeupGate(event, oneThread);
|
H A D | IOPMPowerStateQueue.h | 36 typedef void (*IOPMPowerStateQueueAction)(OSObject *, uint32_t event, void *, uint64_t);
|
/darwin-on-arm/xnu/osfmk/kdp/ |
H A D | kdp_callout.h | 35 typedef void (*kdp_callout_fn_t)(void *arg, kdp_event_t event); 38 * Register fn(arg, event) to be called at kdp entry/exit.
|
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | host_statistics.h | 34 * Definitions for host VM/event statistics data structures. 46 #define VM_STAT_INCR(event) \ 48 OSAddAtomic64(1, (SInt64 *) (&(PROCESSOR_DATA(current_processor(), vm_stat).event))); \
|
H A D | lock.h | 118 event_t event, 124 event_t event, 132 event_t event,
|
H A D | wait_queue.c | 105 * Each thread may be waiting for exactly one event; this event 107 * by performing a thread_wakeup_prim() on its event, 117 * wait event field and the queue chain field. Because wakeup 118 * operations only have the event as an argument, the event hash 125 * The wait event hash table declarations are as follows: 1155 * waiting for a particular event to be posted to that queue. 1165 event64_t event, 1179 if (event 1163 wait_queue_assert_wait64_locked( wait_queue_t wq, event64_t event, wait_interrupt_t interruptible, uint64_t deadline, thread_t thread) argument 1234 wait_queue_assert_wait( wait_queue_t wq, event_t event, wait_interrupt_t interruptible, uint64_t deadline) argument 1268 wait_queue_assert_wait64( wait_queue_t wq, event64_t event, wait_interrupt_t interruptible, uint64_t deadline) argument 1306 _wait_queue_select64_all( wait_queue_t wq, event64_t event, queue_t wake_queue) argument 1379 wait_queue_wakeup64_all_locked( wait_queue_t wq, event64_t event, wait_result_t result, boolean_t unlock) argument 1431 wait_queue_wakeup_all( wait_queue_t wq, event_t event, wait_result_t result) argument 1468 wait_queue_wakeup64_all( wait_queue_t wq, event64_t event, wait_result_t result) argument 1504 _wait_queue_select64_one( wait_queue_t wq, event64_t event) argument 1622 _wait_queue_select64_thread( wait_queue_t wq, event64_t event, thread_t thread) argument 1689 wait_queue_wakeup64_identity_locked( wait_queue_t wq, event64_t event, wait_result_t result, boolean_t unlock) argument 1727 wait_queue_wakeup64_one_locked( wait_queue_t wq, event64_t event, wait_result_t result, boolean_t unlock) argument 1765 wait_queue_wakeup_one( wait_queue_t wq, event_t event, wait_result_t result, int priority) argument 1817 wait_queue_wakeup64_one( wait_queue_t wq, event64_t event, wait_result_t result) argument 1868 wait_queue_wakeup64_thread_locked( wait_queue_t wq, event64_t event, thread_t thread, wait_result_t result, boolean_t unlock) argument 1916 wait_queue_wakeup_thread( wait_queue_t wq, event_t event, thread_t thread, wait_result_t result) argument 1965 wait_queue_wakeup64_thread( wait_queue_t wq, event64_t event, thread_t thread, wait_result_t result) argument [all...] |
H A D | locks.c | 435 event_t event, 443 res = assert_wait(event, interruptible); 465 event_t event, 474 res = assert_wait_deadline(event, interruptible, deadline); 496 event_t event, 502 (int)lck, (int)lck_sleep_action, (int)event, (int)interruptible, 0); 507 res = assert_wait(event, interruptible); 535 event_t event, 542 (int)lck, (int)lck_sleep_action, (int)event, (int)interruptible, 0); 547 res = assert_wait_deadline(event, interruptibl 432 lck_spin_sleep( lck_spin_t *lck, lck_sleep_action_t lck_sleep_action, event_t event, wait_interrupt_t interruptible) argument 462 lck_spin_sleep_deadline( lck_spin_t *lck, lck_sleep_action_t lck_sleep_action, event_t event, wait_interrupt_t interruptible, uint64_t deadline) argument 493 lck_mtx_sleep( lck_mtx_t *lck, lck_sleep_action_t lck_sleep_action, event_t event, wait_interrupt_t interruptible) argument 532 lck_mtx_sleep_deadline( lck_mtx_t *lck, lck_sleep_action_t lck_sleep_action, event_t event, wait_interrupt_t interruptible, uint64_t deadline) argument 856 lck_rw_sleep( lck_rw_t *lck, lck_sleep_action_t lck_sleep_action, event_t event, wait_interrupt_t interruptible) argument 893 lck_rw_sleep_deadline( lck_rw_t *lck, lck_sleep_action_t lck_sleep_action, event_t event, wait_interrupt_t interruptible, uint64_t deadline) argument 1101 thread_sleep_lock_write_EXT( event_t event, lck_rw_t *lock, wait_interrupt_t interruptible) argument 1139 thread_sleep_usimple_lock_EXT( event_t event, lck_spin_t *lock, wait_interrupt_t interruptible) argument 1169 thread_sleep_mutex_EXT( event_t event, lck_mtx_t *mutex, wait_interrupt_t interruptible) argument 1178 thread_sleep_mutex_deadline_EXT( event_t event, lck_mtx_t *mutex, uint64_t deadline, wait_interrupt_t interruptible) argument [all...] |
H A D | locks.h | 55 #define LCK_SLEEP_DEFAULT 0x00 /* Release the lock while waiting for the event, then reclaim */ 254 event_t event, 260 event_t event, 307 event_t event, 313 event_t event, 452 event_t event, 458 event_t event,
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | mp_events.h | 72 extern void i386_signal_cpu(int cpu, mp_event_t event, mp_sync_t mode); 73 extern void i386_signal_cpus(mp_event_t event, mp_sync_t mode);
|
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit.c | 375 audit_new(int event, proc_t p, __unused struct uthread *uthread) argument 389 audit_override = (AUE_SESSION_START == event || 390 AUE_SESSION_UPDATE == event || AUE_SESSION_END == event || 391 AUE_SESSION_CLOSE == event); 411 ar->k_ar.ar_event = event; 445 au_event_t event; local 472 * The open syscall always writes a AUE_OPEN_RWTC event; 473 * change it to the proper type of event based on the flags 483 * AUE_OPEN_EXTENDEDRWTC event; chang 579 au_event_t event; local 703 audit_mach_syscall_enter(unsigned short event) argument [all...] |
H A D | audit_bsm_klib.c | 58 * Hash table functions for the audit event number to event class mask 63 au_event_t event; member in struct:evclass_elem 71 static MALLOC_DEFINE(M_AUDITEVCLASS, "audit_evclass", "Audit event class"); 82 * Look up the class for an audit event in the class mapping table. 85 au_event_class(au_event_t event) argument 92 evcl = &evclass_hash[event % EVCLASSMAP_HASH_TABLE_SIZE]; 95 if (evc->event == event) { 106 * Insert a event t 113 au_evclassmap_insert(au_event_t event, au_class_t class) argument 184 au_preselect(__unused au_event_t event, au_class_t class, au_mask_t *mask_p, int sorf) argument [all...] |
H A D | audit_private.h | 83 * mask has not been created yet. User code should build the event/class 327 struct kaudit_record *audit_new(int event, proc_t p, struct uthread *td); 383 int au_preselect(au_event_t event, au_class_t class, 386 void au_evclassmap_insert(au_event_t event, au_class_t class); 387 au_class_t au_event_class(au_event_t event); 425 int audit_pipe_preselect(au_id_t auid, au_event_t event, 427 void audit_pipe_submit(au_id_t auid, au_event_t event, au_class_t class, 438 struct uthread *uthread, kauth_cred_t my_cred, au_event_t event);
|
/darwin-on-arm/xnu/iokit/IOKit/ |
H A D | IOCommandGate.h | 45 event source. Using the work-loop gate rather than execution by the workloop. 126 work-loop event sources. If the command is disabled the attempt to run a command will be stalled until enable is called. 143 work-loop event sources. If the command is disabled the attempt to run a command will be stalled until enable is called. 163 @result kIOReturnSuccess if successful. kIOReturnNotPermitted if this event source is currently disabled, kIOReturnNoResources if no action available, kIOReturnCannotLock if lock attempt fails. 179 @result kIOReturnSuccess if successful. kIOReturnBadArgument if action is not defined, kIOReturnNotPermitted if this event source is currently disabled, kIOReturnCannotLock if lock attempt fails. 188 @discussion Put a thread to sleep waiting for an event but release the gate first. If the event occurs then the commandGate is closed before the function returns. 189 @param event Pointer to an address. 192 virtual IOReturn commandSleep(void *event, 196 @abstract Wakeup one or more threads that are asleep on an event [all...] |
H A D | IOLocks.h | 136 @param event The event to sleep on. 139 int IOLockSleep( IOLock * lock, void *event, UInt32 interType); 141 int IOLockSleepDeadline( IOLock * lock, void *event, 144 void IOLockWakeup(IOLock * lock, void *event, bool oneThread); 222 void *event, UInt32 interType); 223 extern int IORecursiveLockSleepDeadline( IORecursiveLock * _lock, void *event, 226 void *event, bool oneThread);
|
H A D | IOEventSource.h | 58 @abstract Abstract class for all work-loop event sources. 60 event sources must inherit from if an IOWorkLoop is to receive events from them. 62 An event source can represent any event that should cause the work-loop of a 63 device to wake up and perform work. Two examples of event sources are the 69 work-loop, and the chain of event sources should be used to walk the possible 70 event sources and demultipex them. Note a particular instance of an event 75 The IOEventSource makes no attempt to maintain the consistency of its internal data across multi-threading. It is assumed that the user of these basic tools will protect the data that these objects represent in some sort of device wide instance lock. For example the IOWorkLoop maintains the event chain by using an IOCommandGate and thus single threading access to its state. 80 checkForWork() is the key method in this class. It is called by some work-loop when convienient and is expected to evaluate its internal state and determine if an event ha [all...] |
H A D | IOWorkLoop.h | 48 @discussion An IOWorkLoop is a thread of control that is intended to be used to provide single threaded access to hardware. This class has no knowledge of the nature and type of the events that it marshals and forwards. When a device driver successfully starts (see IOService::start), it is expected to create the event sources it will need to receive events. Then a work loop is initialized and the events are added to the work loop for monitoring. In general this set up will be automated by the family superclass of the specific device. 50 The thread main method walks the event source linked list and messages each one requesting a work check. At this point each event source is expected to notify its registered owner that the event has occurred. After each event has been walked and each indicates that another loop isn't required (by setting the 'more' flag to false) the thread will go to sleep on a signaling semaphore. 52 When an event source is registered with a work loop it is informed of the semaphore to use to wake up the loop. 88 @abstract Checks if the event source passed in overrides checkForWork() to perform any work. 89 IOWorkLoop uses this to determine if the event source should be polled in runEventSources() or not. 90 @param inEventSource The event source to check. 98 @constant mAddEvent Used to tag a Remove event sourc [all...] |
/darwin-on-arm/xnu/osfmk/vm/ |
H A D | vm_object.h | 750 #define vm_object_assert_wait(object, event, interruptible) \ 751 (((object)->all_wanted |= 1 << (event)), \ 752 assert_wait((event_t)((vm_offset_t)(object)+(event)),(interruptible))) 754 #define vm_object_wait(object, event, interruptible) \ 755 (vm_object_assert_wait((object),(event),(interruptible)), \ 759 #define thread_sleep_vm_object(object, event, interruptible) \ 760 lck_rw_sleep(&(object)->Lock, LCK_SLEEP_DEFAULT, (event_t)(event), (interruptible)) 762 #define vm_object_sleep(object, event, interruptible) \ 763 (((object)->all_wanted |= 1 << (event)), \ 765 ((vm_offset_t)(object)+(event)), (interruptibl [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | devtimer.h | 51 devtimer_process_func_event event);
|
H A D | if_bond.c | 552 bondport_receive_machine(bondport_ref p, LAEvent event, 558 bondport_periodic_transmit_machine(bondport_ref p, LAEvent event, 567 bondport_transmit_machine(bondport_ref p, LAEvent event, 574 bondport_mux_machine(bondport_ref p, LAEvent event, 756 * 2) When we attach our protocol to the interface, a dlil event is 1609 timestamp_printf("%s: (receive) generating LINK event\n", 1789 devtimer_process_func_event event) 1793 switch (event) { 1819 timestamp_printf("%s: (timer) generating LINK event\n", 2167 /* check if we need to generate a link status event */ 1788 bondport_timer_process_func(devtimer_ref timer, devtimer_process_func_event event) argument 3026 bond_event(struct ifnet * port_ifp, __unused protocol_family_t protocol, const struct kev_msg * event) argument 3063 } event; local 4009 bondport_receive_machine_event(bondport_ref p, LAEvent event, void * event_data) argument 4041 bondport_receive_machine(bondport_ref p, LAEvent event, void * event_data) argument 4073 bondport_receive_machine_initialize(bondport_ref p, LAEvent event, __unused void * event_data) argument 4097 bondport_receive_machine_port_disabled(bondport_ref p, LAEvent event, __unused void * event_data) argument 4161 bondport_receive_machine_expired(bondport_ref p, LAEvent event, __unused void * event_data) argument 4200 bondport_receive_machine_lacp_disabled(bondport_ref p, LAEvent event, __unused void * event_data) argument 4226 bondport_receive_machine_defaulted(bondport_ref p, LAEvent event, __unused void * event_data) argument 4249 bondport_receive_machine_current(bondport_ref p, LAEvent event, void * event_data) argument 4297 bondport_periodic_transmit_machine(bondport_ref p, LAEvent event, __unused void * event_data) argument 4398 bondport_transmit_machine(bondport_ref p, LAEvent event, void * event_data) argument 4519 bondport_mux_machine(bondport_ref p, LAEvent event, void * event_data) argument 4544 bondport_mux_machine_detached(bondport_ref p, LAEvent event, __unused void * event_data) argument 4582 bondport_mux_machine_waiting(bondport_ref p, LAEvent event, __unused void * event_data) argument 4668 bondport_mux_machine_attached(bondport_ref p, LAEvent event, __unused void * event_data) argument 4709 bondport_mux_machine_collecting_distributing(bondport_ref p, LAEvent event, __unused void * event_data) argument [all...] |
H A D | kext_net.h | 54 extern void sflt_notify(struct socket *so, sflt_event_t event, void *param);
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | eventvar.h | 59 #include <sys/event.h>
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | aurp_aurpd.c | 213 events = aurp_global.event; 218 events = aurp_global.event; 219 aurp_global.event = 0; 223 * Shut down if we have the AE_SHUTDOWN event or if we got 235 aurp_global.event = 0; 268 ("AURPgetmsg: soreceive returned %d, aurp_global.event==0x%x\n", *err, events)); 275 * so clear the data input event flag 279 * cause us to lose an AE_UDPIP event that 280 * was posted in aurp_global.event between 283 * lost event, thoug [all...] |