Searched refs:child (Results 1 - 25 of 32) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_fork.c135 void thread_set_child(thread_t child, int pid);
142 thread_t procdup(proc_t parent, proc_t child);
143 thread_t fork_create_child(task_t parent_task, proc_t child, int inherit_memory, int is64bit);
156 * Retval: 0 (to child process)
157 * !0 pid of child (to parent process)
165 * has its task, thread, and uthread lent to the child process,
168 * is effectively running on the child process.
171 * though discouraged, and will operate on the child process; any
173 * changes in the parent state, and, if inheritable, the child
175 * child proces
182 proc_t child; local
334 vfork_return(proc_t child, register_t *retval, int rval) argument
405 fork_create_child(task_t parent_task, proc_t child, int inherit_memory, int is64bit) argument
494 procdup(proc_t parent, proc_t child) argument
543 proc_t child; local
722 proc_t child; local
852 struct proc * child; /* Our new process */ local
[all...]
H A Dkern_exit.c145 static int reap_child_locked(proc_t parent, proc_t child, int deadparent, int locked, int droplock);
202 * status and rusage for wait(). Check for child processes and orphan them.
526 panic("parent child linkage broken");
585 * Save exit status and final rusage info, adding in child rusage
716 * Add child resource usage to parent before giving
816 * proc_t child Process to reap
823 reap_child_locked(proc_t parent, proc_t child, int deadparent, int locked, int droplock) argument
828 * If we got the child via a ptrace 'attach',
833 if (child->p_oppid && (trace_parent = proc_find(child
1422 proc_reparentlocked(proc_t child, proc_t parent, int cansignal, int locked) argument
[all...]
H A Dkern_proc.c169 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
918 * child The child process to insert
922 * Notes: Insert a child process into the parents process group, assign
923 * the child the parent process pointer and PPID of the parent,
925 * initialize its own child list, place it in the allproc list,
930 pinsertchild(proc_t parent, proc_t child) argument
934 LIST_INIT(&child->p_children);
935 TAILQ_INIT(&child->p_evlist);
936 child
2133 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child) argument
[all...]
H A Dkern_resource.c119 * of child processes per process.
979 proc_limitfork(proc_t parent, proc_t child) argument
982 child->p_limit = parent->p_limit;
983 child->p_limit->pl_refcnt++;
984 child->p_olimit = NULL;
/macosx-10.5.8/xnu-1228.15.4/libsa/
H A Dsort.c105 #define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \
108 child = base + child_i * size; \
109 if (child_i < nmemb && compar(child, child + size) < 0) { \
110 child += size; \
114 if (compar(child, par) <= 0) \
116 SWAP(par, child, count, size, tmp); \
125 * heapify, always maintaining the invariant that the larger child is copied
137 #define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \
139 child
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Ddtrace_ptss.h96 void dtrace_ptss_fork(struct proc* parent, struct proc* child);
H A Dresourcevar.h108 * and a copy must be made for the child of a new fork that isn't
137 void proc_limitfork(proc_t parent, proc_t child);
H A Dproc_internal.h220 struct plimit *p_olimit; /* old process limits - not inherited by child (PL) */
541 extern void pinsertchild(struct proc *parent, struct proc *child);
554 extern void vfork_return(struct proc *child, register_t *retval, int rval);
557 extern void proc_reparentlocked(struct proc *child, struct proc * newparent, int cansignal, int locked);
/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 Daffinity.c226 * give it to the child.
299 * Called from thread_dup() during fork() with child's mutex held.
300 * Set the child into the parent's affinity set.
304 thread_affinity_dup(thread_t parent, thread_t child) argument
311 DBG("thread_affinity_dup(%p,%p) aset %p\n", parent, child, aset);
319 assert(aspc == child->task->affinity_space);
322 affinity_set_add(aset, child);
H A Dtask.h251 task_t *child);
/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/iokit/Kernel/
H A DIODeviceTreeSupport.cpp87 IORegistryEntry * child; local
161 child = MakeReferenceTable( dtChild, freeDT );
162 child->attachToParent( parent, gIODTPlane);
164 AddPHandle( child );
168 parent = child;
171 child->release();
208 while( (child = regIter->getNextObject())) {
209 IODTMapInterruptsSharing( child, allInts );
210 if( !intMap && child->getProperty( gIODTInterruptParentKey))
214 if( (obj = child
[all...]
H A DIORegistryEntry.cpp1497 bool IORegistryEntry::isChild( IORegistryEntry * child, argument
1508 ret = arrayMember( links, child );
1510 if( ret && (links = child->getParentSetReference( plane )))
1636 bool IORegistryEntry::attachToChild( IORegistryEntry * child, argument
1643 if( this == child)
1648 ret = makeLink( child, kChildSetIndex, plane );
1650 if( (links = child->getParentSetReference( plane )))
1658 ret &= child->attachToParent( this, plane );
1690 void IORegistryEntry::detachFromChild( IORegistryEntry * child, argument
1698 child
[all...]
H A DIOServicePM.cpp274 * when a power domain child calls requestPowerDomainState and we decide to
275 change power states to accomodate the child,
653 // detach nub from child
698 IOReturn IOService::addPowerChild ( IOService * child )
705 if (!child)
708 if (!initialized || !child->initialized)
714 // Is this child already one of our children?
716 iter = child->getParentIterator( gIOPowerPlane );
735 PM_DEBUG("[%s] %s (%p) is already a child\n",
736 getName(), child
889 IOService * child; local
1790 IOService * child; local
2559 IOService * child; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/pexpert/gen/
H A Ddevice_tree.c144 RealDTEntry child; local
153 child = GetFirstChild(cur);
155 if (DTGetProperty(child, "name", (void **)&str, &dummy) != kSuccess) {
159 return child;
164 child = GetNextChild(child);
224 // Search child nodes
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dbsd_i386.c210 * Duplicate parent state in child
216 thread_t child
223 if ((child_pcb = child->machine.pcb) == NULL ||
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));
239 * and if so, copy the registers to the child
241 fpu_dup_fxstate(parent, child);
269 void thread_set_child(thread_t child, int pid);
271 thread_set_child(thread_t child, in argument
[all...]
H A Dfpu.h85 thread_t child);
H A Dfpu.c392 * the child thread is 'stopped' with the thread
401 thread_t child)
412 if (child->machine.pcb->ifps)
413 panic("fpu_dup_fxstate: child's ifps non-null");
432 child->machine.pcb->ifps = new_ifps;
435 (char *)&(child->machine.pcb->ifps->fx_save_state), sizeof(struct x86_fx_save));
399 fpu_dup_fxstate( thread_t parent, thread_t child) argument
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace_ptss.c286 * The child proc ptss fields are initialized to NULL at fork time.
290 * Parent and child sprlock should be held, and proc_lock must NOT be held.
293 dtrace_ptss_fork(struct proc* parent, struct proc* child) { argument
294 // The child should not have any pages/entries allocated at this point.
295 // ASSERT(child->p_dtrace_ptss_pages == NULL);
296 // ASSERT(child->p_dtrace_ptss_free_list == NULL);
300 * from changing while the child references it. The child's sprlock
303 * neither the parent or child proc_lock should be held.
307 lck_mtx_assert(&child
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/bsddev/
H A DIOKitBSDInit.cpp426 // find a matching child service
427 IOService * child = 0; local
430 while( ( child = (IOService *) iter->getNextObject() ) ) {
444 if ( child->compareProperty( dict, "Content" ) ) {
449 IOService * subchild = IOFindMatchingChild( child );
451 child = subchild;
457 return child;
714 IOLog( "Waiting for child registration\n" );
717 // look for a subservice with an Apple_HFS child
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
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).
142 @abstract Returns an registry entry's first child entry in a plane. Available in Mac OS X 10.1 or later.
143 @discussion This function will return the child which first attached to a registry entry.
145 @result Returns the first child 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).
501 @abstract Returns an iterator over an registry entry's child entrie
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_dummynet.c314 int child, father, maxelt = h->elements - 1 ; local
320 father = 0 ; /* default: move up smallest child */
332 child = HEAP_LEFT(father) ; /* left child */
333 while (child <= maxelt) { /* valid entry */
334 if (child != maxelt && DN_KEY_LT(h->p[child+1].key, h->p[child].key) )
335 child = child
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/devfs/
H A Ddevfs_tree.c664 * Given a directory backing node, and a child backing node, add the
666 * represent the child node to the user
677 devfs_propogate(devdirent_t * parent,devdirent_t * child) argument
681 devnode_t * dnp = child->de_dnp;
684 int type = child->de_dnp->dn_type;
698 if ((error = dev_add_entry(child->de_name, adnp, type,
701 printf("duplicating %s failed\n",child->de_name);
816 * child nodes in the base level
/macosx-10.5.8/xnu-1228.15.4/bsd/bsm/
H A Daudit_kernel.h386 struct proc *child);

Completed in 139 milliseconds

12