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

123

/xnu-2782.1.97/tools/lldbmacros/core/
H A Doperating_system.py62 def __init__(self):
63 self.switch_context_address = osplugin_target_obj.FindSymbols('Switch_context')[0].GetSymbol().GetStartAddress().GetLoadAddress(osplugin_target_obj)
64 self.ResetRegisterValues()
65 def ResetRegisterValues(self):
66 self.x0 = 0
67 self.x1 = 0
68 self.x2 = 0
69 self.x3 = 0
70 self.x4 = 0
71 self
[all...]
H A Dstandard.py10 def __init__(self, msg):
11 self.error_message = msg
12 def __str__(self):
13 return str(self.error_message)
17 def __init__(self, stdout=None, stderr=None):
18 self._stdout = stdout or sys.stdout
19 self._stderr = stderr or sys.stderr
21 def __enter__(self):
22 self.old_stdout, self
[all...]
H A Dkernelcore.py110 def __init__(self, debugger):
114 self._debugger = debugger # This holds an lldb.SBDebugger object for debugger state
115 self._threads_list = []
116 self._tasks_list = []
117 self._coalitions_list = []
118 self._allproc = []
119 self._terminated_tasks_list = []
120 self._zones_list = []
121 self._zombproc_list = []
122 self
[all...]
H A Dcvalue.py31 def __init__(self, sbvalue):
34 self._sbval19k84obscure747 = sbvalue
35 self._sbval19k84obscure747_type = sbvalue.GetType()
36 self._sbval19k84obscure747_is_ptr = sbvalue.GetType().IsPointerType()
37 self.sbvalue = sbvalue
39 def __nonzero__(self):
40 return ( self._sbval19k84obscure747.__nonzero__() and self._GetValueAsUnsigned() != 0 )
42 def __repr__(self):
43 return self
[all...]
/xnu-2782.1.97/tools/lldbmacros/
H A Dipcimportancedetail.py9 def __init__(self, task_kobj):
10 self.task = task_kobj
11 self.importance_refs = []
17 def __str__(self):
19 if unsigned(self.task) != 0:
20 out_arr.append(GetTaskSummary(self.task) + " " + GetProcSummary(Cast(self.task.bsd_info, 'proc *')) + " {: <#018x}".format(self.task.task_imp_base) )
23 #out_arr.append("TASK: {: <#018x} {: <s}".format(self.task, GetProcNameForTask(self
[all...]
H A Dutils.py169 def __init__(self, log_file_path="/tmp/xnu.log"):
170 self.log_file_handle = open(log_file_path, "w+")
171 self.redirect_to_stdout = False
173 def log_debug(self, *args):
179 self.log_file_handle.write(debug_line_str + "\n")
180 if self.redirect_to_stdout :
183 def write(self, line):
184 self.log_debug(line)
/xnu-2782.1.97/tools/
H A Dsymbolify.py28 def __init__(self, file, min_width=16):
29 self.min_width = min_width
30 self.symbols = [parse_nm_output(l) for l in nm(file)]
31 self.symbols.sort(key=lambda x: x[0])
33 def padded(self, str):
34 return ("%%%ds" % self.min_width) % str
36 def __call__(self, saddr):
42 for s in self.symbols:
44 return self.padded(s[2])
48 return self
[all...]
/xnu-2782.1.97/osfmk/kern/
H A Dsyscall_subr.c207 thread_t self = current_thread(); local
208 if (!callback || self->sched_call != callback) {
212 thread_lock(self);
213 thread_sched_call(self, NULL);
214 thread_unlock(self);
223 thread_t self = current_thread(); local
225 thread_lock(self);
226 thread_sched_call(self, callback);
227 thread_unlock(self);
234 register thread_t self local
258 register thread_t thread, self = current_thread(); local
436 register thread_t self = current_thread(); local
520 thread_poll_yield( thread_t self) argument
[all...]
H A Dsyscall_subr.h78 thread_t self);
H A Dipc_mig.c307 thread_t self = current_thread(); local
319 reply = self->ith_rpc_reply;
323 (self->ith_rpc_reply != IP_NULL))
325 self->ith_rpc_reply = reply;
360 if (!self->active) {
362 self->ith_rpc_reply = IP_NULL;
366 self->ith_continuation = (void (*)(mach_msg_return_t))0;
375 mr = self->ith_state;
376 kmsg = self->ith_kmsg;
377 seqno = self
521 thread_t self = current_thread(); local
[all...]
H A Dsync_sema.c586 thread_t self = current_thread(); local
587 int wait_result = self->wait_result;
588 void (*caller_cont)(kern_return_t) = self->sth_continuation;
590 assert(self->sth_waitsemaphore != SEMAPHORE_NULL);
591 semaphore_dereference(self->sth_waitsemaphore);
592 if (self->sth_signalsemaphore != SEMAPHORE_NULL)
593 semaphore_dereference(self->sth_signalsemaphore);
633 thread_t self = current_thread(); local
636 thread_lock(self);
643 self);
681 thread_t self = current_thread(); local
705 thread_t self = current_thread(); local
[all...]
H A Dsched_prim.c1694 thread_t self = current_thread(); local
1699 thread_lock(self);
1702 assert(self->sched_pri < BASEPRI_RTQUEUES);
1704 prev = self->bound_processor;
1705 self->bound_processor = processor;
1707 thread_unlock(self);
2184 * "self" is what is currently running on the processor,
2190 thread_t self,
2194 thread_continue_t continuation = self->continuation;
2195 void *parameter = self
2189 thread_invoke( thread_t self, thread_t thread, ast_t reason) argument
2456 thread_dispatch( thread_t thread, thread_t self) argument
2728 register thread_t self = current_thread(); local
2797 thread_run( thread_t self, thread_continue_t continuation, void *parameter, thread_t new_thread) argument
2830 register thread_t self = current_thread(); local
[all...]
H A Dthread_call.c1155 thread_t self = current_thread(); local
1159 if ((thread_get_tag_internal(self) & THREAD_TAG_CALLOUT) == 0)
1160 (void)thread_set_tag_internal(self, THREAD_TAG_CALLOUT);
1167 thread_terminate(self);
1175 thread_sched_call(self, group->sched_call);
1233 thread_sched_call(self, NULL);
1236 if (self->callout_woken_from_icontext && !self->callout_woke_thread) {
1237 ledger_credit(self->t_ledger, task_ledgers.interrupt_wakeups, 1);
1238 if (self
1346 thread_t self = current_thread(); local
[all...]
/xnu-2782.1.97/osfmk/ipc/
H A Dmach_msg.c282 thread_t self = current_thread(); local
286 ipc_object_t object = self->ith_object;
287 mach_msg_return_t mr = self->ith_state;
288 mach_vm_address_t msg_addr = self->ith_msg_addr;
289 mach_msg_option_t option = self->ith_option;
290 ipc_kmsg_t kmsg = self->ith_kmsg;
291 mach_port_seqno_t seqno = self->ith_seqno;
307 if (copyout((char *) &self->ith_receiver_name,
312 if (copyout((char *) &self->ith_msize,
336 trailer_size = ipc_kmsg_add_trailer(kmsg, space, option, self, seqn
406 thread_t self = current_thread(); local
434 thread_t self = current_thread(); local
498 thread_t self = current_thread(); local
[all...]
H A Dipc_pset.c400 thread_t self = current_thread(); local
436 self->ith_msg_addr = (mach_vm_address_t) kn->kn_ext[0];
440 self->ith_msg_addr = 0;
451 self->ith_object = (ipc_object_t)pset;
452 self->ith_msize = size;
453 self->ith_option = option;
454 self->ith_scatter_list_size = 0;
455 self->ith_receiver_name = MACH_PORT_NULL;
456 self->ith_continuation = NULL;
458 self
[all...]
/xnu-2782.1.97/tools/tests/testkext/
H A Dtestthreadcall.cpp90 testthreadcall *self = (testthreadcall *)param0; local
94 IOSimpleLockLock(self->tlock);
95 IOSimpleLockUnlock(self->tlock);
101 testthreadcall *self = (testthreadcall *)param0; local
105 IOLockWakeup(self->tlock2, NULL, false);
/xnu-2782.1.97/iokit/Kernel/
H A DIOSubMemoryDescriptor.cpp51 IOSubMemoryDescriptor *self = new IOSubMemoryDescriptor; local
53 if (self && !self->initSubRange(of, offset, length, (IODirection) options)) {
54 self->release();
55 self = 0;
57 return self;
/xnu-2782.1.97/bsd/kern/
H A Dkern_synch.c69 thread_t self = current_thread(); local
75 ut = get_bsdthread_info(self);
95 if (thread_should_abort(self)) {
104 if (thread_should_abort(self)) {
117 act_set_astbsd(self);
162 thread_t self = current_thread(); local
170 ut = get_bsdthread_info(self);
212 if (clear_wait(self, THREAD_INTERRUPTED) == KERN_FAILURE)
227 if (thread_should_abort(self)) {
228 if (clear_wait(self, THREAD_INTERRUPTE
[all...]
H A Dkern_shutdown.c279 proc_t self = current_proc(); local
285 ||(p == self) || (p->p_stat == SZOMB)
326 proc_t self = current_proc(); local
332 ||(p == self) || (p->p_stat == SZOMB)
426 struct proc *p, *self; local
436 self = (struct proc *)current_proc();
443 if (p && p != self) {
/xnu-2782.1.97/libsyscall/mach/
H A Dmach_msg.c385 mach_port_t self = mach_task_self_; local
400 kr = vm_allocate(self,
410 kr = vm_allocate(self,
415 vm_deallocate(self,
430 vm_deallocate(self,
485 (void)vm_deallocate(self,
488 (void)vm_deallocate(self,
515 mach_port_t self = mach_task_self_; local
524 kr = vm_allocate(self,
541 kr = vm_allocate(self,
693 mach_port_t self = mach_task_self_; local
[all...]
/xnu-2782.1.97/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);
213 static void timeoutAndRelease(void *self, void *wl);
H A DIODMACommand.h535 IODMACommand *self = (IODMACommand *)
537 if (!self)
541 bool inited = self->
548 self->release();
549 self = 0;
553 *newCommand = self;
/xnu-2782.1.97/osfmk/i386/
H A Dbsd_i386_native.c152 * Parameters: self Thread ID to set
158 thread_fast_set_cthread_self(uint32_t self) argument
160 machine_thread_set_tsd_base(current_thread(), self); local
168 * Parameters: self Thread ID
174 thread_fast_set_cthread_self64(uint64_t self) argument
176 machine_thread_set_tsd_base(current_thread(), self); local
/xnu-2782.1.97/libkern/libkern/c++/
H A DOSMetaClass.h301 _ptmf2ptf(const OSMetaClassBase *self, void (OSMetaClassBase::*func)(void)) argument
327 u.fObj = self;
342 _ptmf2ptf(const OSMetaClassBase *self, void (OSMetaClassBase::*func)(void)) argument
358 u.fObj = self;
384 * @param self The <code>this</code> pointer of the object whose function
390 * A pointer to a function of the given type referencing <code>self</code>.
401 #define OSMemberFunctionCast(cptrtype, self, func) \
403 _ptmf2ptf(self, (void (OSMetaClassBase::*)(void)) func)

Completed in 110 milliseconds

123