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

123

/macosx-10.5.8/xnu-1228.15.4/libsa/
H A Dmkext.c93 * left & right children & parent. These constitute binary search trees.
95 int lchild[N + 1], rchild[N + 257], parent[N + 1]; member in struct:encode_state
157 * children of node i. These nodes need not be initialized. Also, parent[i]
158 * is the parent of node i. These are initialized to NIL (= N), which stands
173 sp->parent[i] = NIL;
200 sp->parent[r] = p;
208 sp->parent[r] = p;
222 sp->parent[r] = sp->parent[p];
225 sp->parent[s
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_fork.c133 void thread_set_parent(thread_t parent, int pid);
142 thread_t procdup(proc_t parent, proc_t child);
157 * !0 pid of child (to parent process)
164 * Note: After a successful call to this function, the parent process
173 * changes in the parent state, and, if inheritable, the child
180 vfork(proc_t parent, __unused struct vfork_args *uap, register_t *retval) argument
216 (rlim_t)count > parent->p_rlimit[RLIMIT_NPROC].rlim_cur) {
223 printf("vfork called recursively by %s\n", parent->p_comm);
233 err = mac_proc_check_fork(parent);
240 proc_lock(parent);
336 proc_t parent = child->p_pptr; local
494 procdup(proc_t parent, proc_t child) argument
541 fork(proc_t parent, __unused struct fork_args *uap, register_t *retval) argument
720 cloneproc(proc_t parent, int lock) argument
850 forkproc(proc_t parent, int lock) argument
[all...]
H A Dkern_proc.c169 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
474 proc_t parent = PROC_NULL; local
483 parent = PROC_NULL;
492 parent = PROC_NULL;
500 parent = pp;
506 return(parent);
602 proc_t parent; local
608 parent = proc_refinternal_locked(pp);
609 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)){
615 return(parent);
930 pinsertchild(proc_t parent, proc_t child) argument
1218 proc_t parent; local
2133 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child) argument
[all...]
H A Dkern_exit.c145 static int reap_child_locked(proc_t parent, proc_t child, int deadparent, int locked, int droplock);
201 * to zombie, and unlink proc from allproc and parent's lists. Save exit
329 * If parent is waiting for us to exit or exec,
330 * P_LPPWAIT is set; we will wakeup the parent below.
526 panic("parent child linkage broken");
701 * Notify parent that we're gone.
708 * If the parent is ignoring SIGCHLD, then POSIX requires
709 * us to not add the resource usage to the parent process -
716 * Add child resource usage to parent before giving
747 * no one except parent (reapin
823 reap_child_locked(proc_t parent, proc_t child, int deadparent, int locked, int droplock) argument
1422 proc_reparentlocked(proc_t child, proc_t parent, int cansignal, int locked) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIODeviceTreeSupport.cpp86 IORegistryEntry * parent; local
129 = OSSymbol::withCStringNoCopy("interrupt-parent");
149 parent = MakeReferenceTable( (DTEntry)dtTop, freeDT );
151 stack = OSArray::withObjects( (const OSObject **) &parent, 1, 10 );
155 parent = (IORegistryEntry *)stack->getObject( stack->getCount() - 1);
156 //parent->release();
162 child->attachToParent( parent, gIODTPlane);
167 stack->setObject( parent);
168 parent = child;
180 // parent i
440 IORegistryEntry * parent; local
493 IORegistryEntry *parent = 0; local
644 IORegistryEntry * parent; local
954 IORegistryEntry *parent; local
1119 IODTGetNVLocation( IORegistryEntry * parent, IORegistryEntry * regEntry, UInt8 * busNum, UInt8 * deviceNum, UInt8 * functionNum ) argument
1155 IORegistryEntry *parent; local
1187 IORegistryEntry *parent; local
[all...]
H A DIORegistryEntry.cpp848 IORegistryEntry * parent; local
880 parent = entry->getParentEntry( plane );
881 if( !parent)
892 while( parent && (entry != root)) {
895 entry = parent;
896 parent = entry->getParentEntry( plane );
1518 bool IORegistryEntry::isParent( IORegistryEntry * parent, argument
1530 ret = arrayMember( links, parent );
1532 if( ret && (links = parent->getChildSetReference( plane )))
1584 bool IORegistryEntry::attachToParent( IORegistryEntry * parent, argument
1663 detachFromParent( IORegistryEntry * parent, const IORegistryPlane * plane ) argument
1717 IORegistryEntry * parent; local
[all...]
H A DIOServicePM.cpp185 parent.
201 time, the parent decides to lower or raise the power state of the entire
218 state, we suggest to the parent that it lower the power domain state.
221 How a change to a lower power domain state initiated by the parent is handled:
228 -> Then we acknowledge our preparedness to our parent. When all its
235 How a change to a higher power domain state initiated by the parent is handled:
238 -> If it is different from our current state we acknowledge the parent.
239 -> When all the parent's interested parties have acknowledged, it raises
254 do but acknowledge the parent. So when the parent call
835 IOService * parent; local
1564 IOService * parent; local
1651 IOService * parent; local
3533 IOService * parent; local
3616 IOService * parent; local
4186 IOService * parent; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dsysctl.h267 #define SYSCTL_OID(parent, nbr, name, kind, a1, a2, handler, fmt, descr) \
268 struct sysctl_oid sysctl_##parent##_##name = { \
269 &sysctl_##parent##_children, { 0 }, \
271 SYSCTL_LINKER_SET_ENTRY(__sysctl_set, sysctl_##parent##_##name)
274 #define SYSCTL_NODE(parent, nbr, name, access, handler, descr) \
275 struct sysctl_oid_list sysctl_##parent##_##name##_children; \
276 SYSCTL_OID(parent, nbr, name, CTLTYPE_NODE|access, \
277 (void*)&sysctl_##parent##_##name##_children, 0, handler, \
281 #define SYSCTL_STRING(parent, nbr, name, access, arg, len, descr) \
282 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);
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/
H A Dipc_splay.c106 * to point back to the parent entry. When ascending,
765 ipc_tree_entry_t current, parent; local
775 parent = ITE_NULL;
781 current->ite_lchild = parent;
782 parent = current;
787 splay->ist_rtree = parent;
798 ipc_tree_entry_t current, parent; local
803 parent = splay->ist_rtree;
815 if (parent == ITE_NULL) {
822 if (current->ite_name < parent
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Daffinity.h55 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);
408 * after removing it from the parent task.
474 * 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)
150 if (parent)
151 mac_task_label_associate(parent, task, &parent->maclabel,
157 if (parent == TASK_NULL) {
177 itk_lock(parent);
178 assert(parent->itk_self != IP_NULL);
184 ipc_port_copy_send(parent
117 ipc_task_init( task_t task, task_t parent) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/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);
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/devfs/
H A Ddevfs_proto.h46 int dev_add_entry(const char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
H A Ddevfs_tree.c225 return dir->dn_typeinfo.Dir.parent->dn_typeinfo.Dir.myname;
369 /* inherrit our parent's mount info */ /*XXX*/
373 /* if(!dnp->dn_dvm) printf("parent had null dvm "); */
412 if(dnp->dn_typeinfo.Dir.parent) {
413 dnp->dn_typeinfo.Dir.parent->dn_links--;
416 dnp->dn_typeinfo.Dir.parent = dirnode;
418 dnp->dn_typeinfo.Dir.parent = dnp;
420 dnp->dn_typeinfo.Dir.parent->dn_links++; /* account for the new '..' */
431 * (i.e. have parent)
558 /* until we know better, it has a null parent pointe
677 devfs_propogate(devdirent_t * parent,devdirent_t * child) argument
821 dev_dup_entry(devnode_t * parent, devdirent_t * back, devdirent_t * *dnm_pp, struct devfsmount *dvm) argument
883 devnode_t * parent = dirent_p->de_parent; local
1157 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...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dbsd_i386.c210 * Duplicate parent state in child
215 thread_t parent,
224 (parent_pcb = parent->machine.pcb) == NULL)
230 if (thread_is_64bit(parent))
231 bcopy(USER_REGS64(parent), USER_REGS64(child), sizeof(x86_saved_state64_t));
233 bcopy(USER_REGS32(parent), USER_REGS32(child), sizeof(x86_saved_state_compat32_t));
235 bcopy(USER_REGS32(parent), USER_REGS32(child), sizeof(x86_saved_state32_t));
238 * Check to see if parent is using floating point
241 fpu_dup_fxstate(parent, child);
245 * Copy the parent'
214 machine_thread_dup( thread_t parent, thread_t child ) argument
296 thread_set_parent(thread_t parent, int pid) argument
[all...]
H A Dfpu.h84 thread_t parent,
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace_ptss.c287 * Pages allocated in the parent are copied as part of the vm_map copy, though.
293 dtrace_ptss_fork(struct proc* parent, struct proc* child) { argument
299 * The parent's sprlock should be held, to protect its pages list
303 * neither the parent or child proc_lock should be held.
305 lck_mtx_assert(&parent->p_dtrace_sprlock, LCK_MTX_ASSERT_OWNED);
306 lck_mtx_assert(&parent->p_mlock, LCK_MTX_ASSERT_NOTOWNED);
311 struct dtrace_ptss_page* temp = parent->p_dtrace_ptss_pages;
317 // Do not free the kernel memory, it belong to the parent.
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIODeviceTreeSupport.h89 IODeviceMemory * parent );
H A DIORegistryEntry.h89 @discussion This method will search for a property, starting first with this registry entry's property table, then iterating recusively through either the parent registry entries or the child registry entries of this entry. Once the first occurrence is found, it will lookup and return the value of the property, using the OSDictionary::getObject semantics. The iteration keeps track of entries that have been recursed into previously to avoid loops. This method is synchronized with other IORegistryEntry accesses to the property table(s).
104 @discussion This method will search for a property, starting first with this registry entry's property table, then iterating recusively through either the parent registry entries or the child registry entries of this entry. Once the first occurrence is found, it will lookup and return the value of the property, using the OSDictionary::getObject semantics. The iteration keeps track of entries that have been recursed into previously to avoid loops. This method is synchronized with other IORegistryEntry accesses to the property table(s).
119 @discussion This method will search for a property, starting first with this registry entry's property table, then iterating recusively through either the parent registry entries or the child registry entries of this entry. Once the first occurrence is found, it will lookup and return the value of the property, using the OSDictionary::getObject semantics. The iteration keeps track of entries that have been recursed into previously to avoid loops. This method is synchronized with other IORegistryEntry accesses to the property table(s).
133 @abstract Returns an registry entry's first parent entry in a plane. Available in Mac OS X 10.1 or later.
134 @discussion This function will return the parent to which a registry entry was first attached. Since the majority of registry entrys have only one provider, this is a useful simplification.
136 @result Returns the first parent of the registry entry, or zero if the entry is not attached into the registry in that plane. A reference on the entry is returned to caller, which should be released. */
380 @discussion This method will search for a property, starting first with this registry entry's property table, then iterating recusively through either the parent registry entries or the child registry entries of this entry. Once the first occurrence is found, it will lookup and return the value of the property, using the OSDictionary::getObject semantics. The iteration keeps track of entries that have been recursed into previously to avoid loops. This method is synchronized with other IORegistryEntry accesses to the property table(s).
394 @discussion This method will search for a property, starting first with this registry entry's property table, then iterating recusively through either the parent registry entries or the child registry entries of this entry. Once the first occurrence is found, it will lookup and return the value of the property, using the OSDictionary::getObject semantics. The iteration keeps track of entries that have been recursed into previously to avoid loops. This method is synchronized with other IORegistryEntry accesses to the property table(s).
408 @discussion This method will search for a property, starting first with this registry entry's property table, then iterating recusively through either the parent registry entries or the child registry entries of this entry. Once the first occurrence is found, it will lookup and return the value of the property, using the OSDictionary::getObject semantics. The iteration keeps track of entries that have been recursed into previously to avoid loops. This method is synchronized with other IORegistryEntry accesses to the property table(s).
482 @abstract Returns an iterator over an registry entry's parent entrie
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/vm/
H A Dvm_kern.h126 vm_map_t parent,
H A Dvm_kern.c769 * parent Map to take range from
778 vm_map_t parent,
800 vm_map_min(parent) : vm_map_trunc_page(*addr);
802 kr = vm_map_enter(parent, &map_addr, map_size,
811 pmap_reference(vm_map_pmap(parent));
812 map = vm_map_create(vm_map_pmap(parent), map_addr, map_addr + map_size, pageable);
816 kr = vm_map_submap(parent, map_addr, map_addr + map_size, map, map_addr, FALSE);
821 vm_map_remove(parent, map_addr, map_addr + map_size, VM_MAP_NO_FLAGS);
777 kmem_suballoc( vm_map_t parent, vm_offset_t *addr, vm_size_t size, boolean_t pageable, int flags, vm_map_t *new_map) argument

Completed in 105 milliseconds

123