Searched refs:self (Results 1 - 25 of 45) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dsyscall_subr.c186 register thread_t self = current_thread(); local
187 int option = self->saved.swtch.option;
190 thread_depress_abort_internal(self);
205 register thread_t thread, self = current_thread(); local
230 if (ipc_port_translate_send(self->task->itk_space,
238 if (thread == self) {
287 self->saved.swtch.option = option;
289 thread_run(self, (thread_continue_t)thread_switch_continue, NULL, thread);
305 self->saved.swtch.option = option;
310 thread_depress_abort_internal(self);
323 register thread_t self = current_thread(); local
407 thread_poll_yield( thread_t self) argument
[all...]
H A Dsyscall_subr.h78 thread_t self);
H A Dipc_mig.c173 thread_t self = current_thread(); local
186 reply = self->ith_rpc_reply;
190 (self->ith_rpc_reply != IP_NULL))
192 self->ith_rpc_reply = reply;
219 if (!self->active) {
229 self->ith_continuation = (void (*)(mach_msg_return_t))0;
237 mr = self->ith_state;
238 kmsg = self->ith_kmsg;
239 seqno = self->ith_seqno;
248 if (self
373 thread_t self = current_thread(); local
[all...]
H A Dsched_prim.c1144 thread_t self = current_thread(); local
1149 thread_lock(self);
1151 prev = self->bound_processor;
1152 self->bound_processor = processor;
1154 thread_unlock(self);
1468 register thread_t self,
1472 thread_continue_t continuation = self->continuation;
1473 void *parameter = self->parameter;
1480 assert(self == current_thread());
1496 if ((self
1467 thread_invoke( register thread_t self, register thread_t thread, ast_t reason) argument
1654 thread_dispatch( thread_t thread, thread_t self) argument
1807 register thread_t self = current_thread(); local
1874 thread_run( thread_t self, thread_continue_t continuation, void *parameter, thread_t new_thread) argument
1911 register thread_t self = current_thread(); local
[all...]
H A Dsync_sema.c565 thread_t self = current_thread(); local
566 int wait_result = self->wait_result;
567 void (*caller_cont)(kern_return_t) = self->sth_continuation;
569 assert(self->sth_waitsemaphore != SEMAPHORE_NULL);
570 semaphore_dereference(self->sth_waitsemaphore);
571 if (self->sth_signalsemaphore != SEMAPHORE_NULL)
572 semaphore_dereference(self->sth_signalsemaphore);
620 thread_t self = current_thread(); local
623 thread_lock(self);
640 self);
678 thread_t self = current_thread(); local
702 thread_t self = current_thread(); local
[all...]
H A Dsecurity.c135 task_t self,
139 tasklabel_lock2(self, obj);
142 &self->maclabel, &obj->maclabel,
145 tasklabel_unlock2(self, obj);
152 task_t self __unused,
134 mac_task_check_service( task_t self, task_t obj, const char * perm) argument
H A Dthread_act.c217 thread_t self = current_thread(); local
229 if (thread != self)
238 if (thread != self && result == KERN_SUCCESS)
562 thread_t self = current_thread(); local
565 if (target == THREAD_NULL || target == self)
577 result = machine_thread_dup(self, target);
578 if (self->affinity_set != AFFINITY_SET_NULL)
579 thread_affinity_dup(self, target);
H A Dlocks.c541 thread_t self = current_thread(); local
560 priority = self->sched_pri;
561 if (priority < self->priority)
562 priority = self->priority;
583 if (self->pending_promoter[self->pending_promoter_index] == NULL) {
584 self->pending_promoter[self->pending_promoter_index] = mutex;
588 if (self->pending_promoter[self
[all...]
H A Dmachine.c241 thread_t old_thread, self = current_thread(); local
266 old_thread = machine_processor_shutdown(self, processor_offline, processor);
268 thread_dispatch(old_thread, self);
H A Dstartup.c375 thread_t self = current_thread(); local
383 if (self == processor->idle_thread)
386 thread_terminate(self);
H A Dtask.c526 thread_t thread, self; local
532 self = current_thread();
533 self_task = self->task;
551 if (!task->active || !self->active) {
676 thread_t thread, self; local
680 self = current_thread();
682 if (task != self->task)
687 if (!task->active || !self->active) {
712 if (thread != self)
823 register thread_t thread, self; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/
H A Dipc_mqueue.c563 thread_t self = current_thread(); local
564 mach_msg_option_t option = self->ith_option;
571 self->ith_state = MACH_RCV_TIMED_OUT;
575 self->ith_state = MACH_RCV_INTERRUPTED;
580 self->ith_state = MACH_RCV_PORT_CHANGED;
588 switch (self->ith_state) {
661 thread_t self; local
672 self = current_thread();
728 if (self->ith_kmsg != NULL &&
729 self
842 thread_t self = current_thread(); local
[all...]
H A Dmach_msg.c275 thread_t self = current_thread(); local
279 ipc_object_t object = self->ith_object;
280 mach_msg_return_t mr = self->ith_state;
281 mach_vm_address_t msg_addr = self->ith_msg_addr;
282 mach_msg_option_t option = self->ith_option;
283 ipc_kmsg_t kmsg = self->ith_kmsg;
284 mach_port_seqno_t seqno = self->ith_seqno;
300 if (copyout((char *) &self->ith_msize,
380 mach_msg_size_t slist_size = self->ith_scatter_list_size;
422 thread_t self local
450 thread_t self = current_thread(); local
668 thread_t self = current_thread(); local
1868 thread_t self = current_thread(); local
[all...]
H A Dipc_right.c1335 task_t self = current_task(); local
1350 tasklabel_lock(self);
1351 rc = mac_port_check_make_send(&self->maclabel, &port->ip_label); tasklabel_unlock(self);
1365 tasklabel_lock(self);
1366 rc = mac_port_check_make_send_once(&self->maclabel, &port->ip_label);
1367 tasklabel_unlock(self);
1381 tasklabel_lock(self);
1382 rc = mac_port_check_move_receive(&self->maclabel, &port->ip_label);
1383 tasklabel_unlock(self);
1489 task_t self = current_task(); local
1955 task_t self = current_task(); local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_synch.c70 thread_t self = current_thread(); local
76 ut = get_bsdthread_info(self);
95 if (thread_should_abort(self)) {
104 if (thread_should_abort(self)) {
117 act_set_astbsd(self);
159 thread_t self = current_thread(); local
166 ut = get_bsdthread_info(self);
195 if (clear_wait(self, THREAD_INTERRUPTED) == KERN_FAILURE)
206 if (thread_should_abort(self)) {
207 if (clear_wait(self, THREAD_INTERRUPTE
[all...]
H A Dkern_shutdown.c199 proc_t self = current_proc(); local
205 ||(p == self) || (p->p_stat == SZOMB)
237 proc_t self = current_proc(); local
243 ||(p == self) || (p->p_stat == SZOMB)
319 struct proc *p, *self; local
328 self = (struct proc *)current_proc();
335 if (p && p != self) {
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIOFilterInterruptEventSource.h139 virtual void normalInterruptOccurred(void *self, IOService *prov, int ind);
143 virtual void disableInterruptOccurred(void *self, IOService *prov, int ind);
H A DIOTimerEventSource.h86 @param self This argument will be cast to an IOTimerEventSource. */
87 static void timeout(void *self);
219 static void timeoutAndRelease(void *self, void *wl);
H A DIODMACommand.h516 IODMACommand *self = (IODMACommand *)
518 if (!self)
522 bool inited = self->
529 self->release();
530 self = 0;
534 *newCommand = self;
H A DIOWorkLoop.h89 static void threadMainContinuation(IOWorkLoop *self);
/macosx-10.5.8/xnu-1228.15.4/libsyscall/mach/
H A Dmach_msg.c365 mach_port_t self = mach_task_self(); local
379 kr = vm_allocate(self,
389 kr = vm_allocate(self,
394 vm_deallocate(self,
409 vm_deallocate(self,
460 (void)vm_deallocate(self,
463 (void)vm_deallocate(self,
490 mach_port_t self = mach_task_self(); local
497 kr = vm_allocate(self,
514 kr = vm_allocate(self,
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/c++/
H A DOSMetaClass.h120 _ptmf2ptf(const OSMetaClassBase *self, void (OSMetaClassBase::*func)(void)) argument
146 u.fObj = self;
161 _ptmf2ptf(const OSMetaClassBase *self, void (OSMetaClassBase::*func)(void)) argument
177 u.fObj = self;
193 @param self The this pointer of the object whose function you wish to cache.
198 #define OSMemberFunctionCast(cptrtype, self, func) \
200 _ptmf2ptf(self, (void (OSMetaClassBase::*)(void)) func)
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dbsd_i386.c468 thread_set_cthread_self(uint32_t self) argument
470 current_thread()->machine.pcb->cthread_self = (uint64_t) self;
482 thread_fast_set_cthread_self(uint32_t self) argument
488 thread_compose_cthread_desc(self, pcb);
489 pcb->cthread_self = (uint64_t) self; /* preserve old func too */
528 thread_fast_set_cthread_self64(uint64_t self) argument
536 if (!IS_USERADDR64_CANONICAL(self))
537 self = 0ULL;
538 pcb->cthread_self = self;
539 current_cpu_datap()->cpu_uber.cu_user_gs_base = self;
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOTimerEventSource.cpp76 void IOTimerEventSource::timeout(void *self) argument
78 IOTimerEventSource *me = (IOTimerEventSource *) self;
100 void IOTimerEventSource::timeoutAndRelease(void * self, void * count) argument
102 IOTimerEventSource *me = (IOTimerEventSource *) self;
/macosx-10.5.8/xnu-1228.15.4/bsd/uxkern/
H A Dux_exception.c100 task_t self = current_task(); local
104 /* self->kernel_vm_space = TRUE; */
105 ux_handler_self = self;
124 if (ipc_object_copyin(get_task_ipcspace(self), exc_port_name,
230 task_t self = current_task(); local
246 (ipc_object_copyin(get_task_ipcspace(self), thread_name,

Completed in 141 milliseconds

12