Searched refs:parent (Results 1 - 25 of 61) sorted by relevance

123

/darwin-on-arm/xnu/libkern/
H A Dmkext.c105 * left & right children & parent. These constitute binary search trees.
107 int lchild[N + 1], rchild[N + 257], parent[N + 1]; member in struct:encode_state
176 * children of node i. These nodes need not be initialized. Also, parent[i]
177 * is the parent of node i. These are initialized to NIL (= N), which stands
192 sp->parent[i] = NIL;
219 sp->parent[r] = p;
227 sp->parent[r] = p;
241 sp->parent[r] = sp->parent[p];
244 sp->parent[s
[all...]
/darwin-on-arm/xnu/libkern/libkern/
H A Dtree.h79 * - each red node (except for the root) has a black parent,
337 struct type *rbe_parent; /* parent element */ \
349 #define RB_SET(name, elm, parent, field) do { \
350 name##_RB_SETPARENT(elm, parent); \
438 struct type *parent = _RB_PARENT(elm, field); \
439 if( parent != NULL) { \
440 parent = (struct type*)((uintptr_t)parent & ~RB_COLOR_MASK);\
441 return( (struct type*) ( (parent == (struct type*) RB_PLACEHOLDER) ? NULL: parent));\
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOSubMemoryDescriptor.cpp60 bool IOSubMemoryDescriptor::initSubRange( IOMemoryDescriptor * parent, argument
64 if( parent && ((offset + length) > parent->getLength()))
85 if (parent) {
86 parent->retain();
87 _tag = parent->getTag();
92 _parent = parent;
H A DIODeviceTreeSupport.cpp88 IORegistryEntry * parent; local
130 = OSSymbol::withCStringNoCopy("interrupt-parent");
150 parent = MakeReferenceTable( (DTEntry)dtTop, freeDT );
152 stack = OSArray::withObjects( (const OSObject **) &parent, 1, 10 );
156 parent = (IORegistryEntry *)stack->getObject( stack->getCount() - 1);
157 //parent->release();
163 child->attachToParent( parent, gIODTPlane);
168 stack->setObject( parent);
169 parent = child;
181 // parent i
441 IORegistryEntry * parent; local
494 IORegistryEntry *parent = 0; local
645 IORegistryEntry * parent; local
955 IORegistryEntry *parent; local
1158 IODTGetNVLocation( IORegistryEntry * parent, IORegistryEntry * regEntry, UInt8 * busNum, UInt8 * deviceNum, UInt8 * functionNum ) argument
1194 IORegistryEntry *parent; local
1226 IORegistryEntry *parent; local
[all...]
H A DIORegistryEntry.cpp889 IORegistryEntry * parent; local
921 parent = entry->getParentEntry( plane );
922 if( !parent)
933 while( parent && (entry != root)) {
936 entry = parent;
937 parent = entry->getParentEntry( plane );
1559 bool IORegistryEntry::isParent( IORegistryEntry * parent, argument
1571 ret = arrayMember( links, parent );
1573 if( ret && (links = parent->getChildSetReference( plane )))
1625 bool IORegistryEntry::attachToParent( IORegistryEntry * parent, argument
1715 detachFromParent( IORegistryEntry * parent, const IORegistryPlane * plane ) argument
1769 IORegistryEntry * parent; local
[all...]
/darwin-on-arm/xnu/osfmk/i386/
H A Dbsd_i386_native.c73 * Duplicate parent state in child
78 thread_t parent,
83 pcb_t parent_pcb = THREAD_TO_PCB(parent);
90 if (thread_is_64bit(parent))
91 bcopy(USER_REGS64(parent), USER_REGS64(child), sizeof(x86_saved_state64_t));
93 bcopy(USER_REGS32(parent), USER_REGS32(child), sizeof(x86_saved_state_compat32_t));
95 bcopy(USER_REGS32(parent), USER_REGS32(child), sizeof(x86_saved_state32_t));
98 * Check to see if parent is using floating point
101 fpu_dup_fxstate(parent, child);
105 * Copy the parent'
77 machine_thread_dup( thread_t parent, thread_t child ) argument
128 thread_set_parent(thread_t parent, int pid) argument
[all...]
H A Dfpu.h94 thread_t parent,
/darwin-on-arm/xnu/bsd/sys/
H A Dsysctl.h299 #define SYSCTL_OID(parent, nbr, name, kind, a1, a2, handler, fmt, descr) \
300 struct sysctl_oid sysctl_##parent##_##name = { \
301 &sysctl_##parent##_children, { 0 }, \
303 SYSCTL_LINKER_SET_ENTRY(__sysctl_set, sysctl_##parent##_##name)
306 #define SYSCTL_NODE(parent, nbr, name, access, handler, descr) \
307 struct sysctl_oid_list sysctl_##parent##_##name##_children; \
308 SYSCTL_OID(parent, nbr, name, CTLTYPE_NODE|access, \
309 (void*)&sysctl_##parent##_##name##_children, 0, handler, \
313 #define SYSCTL_STRING(parent, nbr, name, access, arg, len, descr) \
314 SYSCTL_OID(parent, nb
[all...]
H A Ddtrace_ptss.h60 * At process fork, free user pages copied from parent, and do not allocate kernel memory.
96 void dtrace_ptss_fork(struct proc* parent, struct proc* child);
H A Dresourcevar.h137 void proc_limitfork(proc_t parent, proc_t child);
/darwin-on-arm/xnu/bsd/net/
H A Dpf_ruleset.c253 struct pf_anchor *anchor = 0, *dup, *parent = NULL; local
265 while (parent == NULL && (q = strrchr(p, '/')) != NULL) {
268 parent = ruleset->anchor;
285 (parent != NULL && strlen(parent->path) >=
298 if (parent != NULL) {
299 strlcpy(anchor->path, parent->path,
313 if (parent != NULL) {
314 anchor->parent = parent;
343 struct pf_anchor *parent; local
[all...]
/darwin-on-arm/xnu/security/
H A Dmac_task.c101 mac_task_label_associate(struct task *parent, struct task *child, struct label *pl, argument
105 MAC_PERFORM(task_label_associate, parent, child, pl, chl, chportl);
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_proto.h47 int dev_add_entry(const char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
H A Ddevfs_tree.c260 return dir->dn_typeinfo.Dir.parent->dn_typeinfo.Dir.myname;
405 /* inherrit our parent's mount info */ /*XXX*/
409 /* if(!dnp->dn_dvm) printf("parent had null dvm "); */
448 if(dnp->dn_typeinfo.Dir.parent) {
449 dnp->dn_typeinfo.Dir.parent->dn_links--;
452 dnp->dn_typeinfo.Dir.parent = dirnode;
454 dnp->dn_typeinfo.Dir.parent = dnp;
456 dnp->dn_typeinfo.Dir.parent->dn_links++; /* account for the new '..' */
467 * (i.e. have parent)
597 /* until we know better, it has a null parent pointe
723 devfs_propogate(devdirent_t * parent,devdirent_t * child, devfs_event_log_t delp) argument
967 dev_dup_entry(devnode_t * parent, devdirent_t * back, devdirent_t * *dnm_pp, struct devfsmount *dvm) argument
1029 devnode_t * parent = dirent_p->de_parent; local
1356 dev_add_entry(const char *name, devnode_t * parent, int type, devnode_type_t * typeinfo, devnode_t * proto, struct devfsmount *dvm, devdirent_t * *nm_pp) argument
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Daffinity.h58 extern void thread_affinity_dup(thread_t parent, thread_t child);
H A Dipc_tt.h78 task_t parent);
H A Daffinity.c300 * Set the child into the parent's affinity set.
304 thread_affinity_dup(thread_t parent, thread_t child) argument
309 thread_mtx_lock(parent);
310 aset = parent->affinity_set;
311 DBG("thread_affinity_dup(%p,%p) aset %p\n", parent, child, aset);
313 thread_mtx_unlock(parent);
318 assert(aspc == parent->task->affinity_space);
325 thread_mtx_unlock(parent);
420 * after removing it from the parent task.
486 * Find an affinity set in the parent tas
[all...]
H A Dipc_tt.c110 * If non-null, some state will be inherited from the parent.
111 * The parent must be appropriately initialized.
119 task_t parent)
149 if (parent)
150 mac_task_label_associate(parent, task, &parent->maclabel,
156 if (parent == TASK_NULL) {
175 itk_lock(parent);
176 assert(parent->itk_self != IP_NULL);
182 ipc_port_copy_send(parent
117 ipc_task_init( task_t task, task_t parent) argument
[all...]
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Ddtrace_ptss.c291 * Pages allocated in the parent are copied as part of the vm_map copy, though.
297 dtrace_ptss_fork(struct proc* parent, struct proc* child) { argument
303 * The parent's sprlock should be held, to protect its pages list
307 * neither the parent or child proc_lock should be held.
309 lck_mtx_assert(&parent->p_dtrace_sprlock, LCK_MTX_ASSERT_OWNED);
310 lck_mtx_assert(&parent->p_mlock, LCK_MTX_ASSERT_NOTOWNED);
315 struct dtrace_ptss_page* temp = parent->p_dtrace_ptss_pages;
321 // Do not free the kernel memory, it belong to the parent.
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_fw2.h434 /* 'rule' is used to pass up the rule number (from the parent) */
436 ipfw_dyn_rule *parent; /* pointer to parent rule */ member in struct:_ipfw_dyn_rule
455 /* 'rule' is used to pass up the rule number (from the parent) */
457 ipfw_dyn_rule *parent; /* pointer to parent rule */ member in struct:_ipfw_dyn_rule
567 /* 'rule' is used to pass up the rule number (from the parent) */
569 user32_addr_t parent; /* pointer to parent rule */ member in struct:_ipfw_dyn_rule_32
590 /* 'rule' is used to pass up the rule number (from the parent) */
592 user64_addr_t parent; /* pointer to parent rule */ member in struct:_ipfw_dyn_rule_64
[all...]
/darwin-on-arm/xnu/iokit/IOKit/
H A DIOSubMemoryDescriptor.h51 @discussion This method creates and initializes an IOMemoryDescriptor for memory consisting of a subrange of the specified memory descriptor. The parent memory descriptor is retained by the new descriptor.
52 @param of The parent IOMemoryDescriptor of which a subrange is to be used for the new descriptor, which will be retained by the subrange IOMemoryDescriptor.
53 @param offset A byte offset into the parent memory descriptor's memory.
72 virtual bool initSubRange( IOMemoryDescriptor * parent,
H A DIODeviceTreeSupport.h93 IODeviceMemory * parent );
/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_map_store_rb.c42 int rb_node_compare(struct vm_map_store *node, struct vm_map_store *parent) argument
48 vme_p = VME_FOR_STORE(parent);
H A Dvm_kern.h130 vm_map_t parent,
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_proc.c173 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
494 proc_t parent = PROC_NULL; local
503 parent = PROC_NULL;
512 parent = PROC_NULL;
520 parent = pp;
526 return(parent);
622 proc_t parent; local
628 parent = proc_ref_locked(pp);
629 if ((parent == PROC_NULL) && (pp != PROC_NULL) && (pp->p_stat != SZOMB) && ((pp->p_listflag & P_LIST_EXITED) != 0) && ((pp->p_listflag & P_LIST_CHILDDRAINED)== 0)){
635 return(parent);
986 pinsertchild(proc_t parent, proc_t child) argument
1295 proc_t parent; local
2318 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child) argument
[all...]

Completed in 204 milliseconds

123