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

12

/darwin-on-arm/xnu/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.h251 struct plimit *p_olimit; /* old process limits - not inherited by child (PL) */
474 #define PROC_CREATE_FORK 0 /* independent child (running) */
475 #define PROC_CREATE_SPAWN 1 /* independent child (suspended) */
476 #define PROC_CREATE_VFORK 2 /* child borrows context */
678 extern void pinsertchild(struct proc *parent, struct proc *child);
691 extern void vfork_return(struct proc *child, int32_t *retval, int rval);
696 extern void proc_reparentlocked(struct proc *child, struct proc * newparent, int cansignal, int locked);
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_exit.c156 static int reap_child_locked(proc_t parent, proc_t child, int deadparent, int reparentedtoinit, int locked, int droplock);
243 * status and rusage for wait(). Check for child processes and orphan them.
659 panic("parent child linkage broken");
683 * Take a reference on the child process to
732 * Save exit status and final rusage info, adding in child rusage
820 * Add child resource usage to parent before giving
927 * proc_t child Process to reap
934 reap_child_locked(proc_t parent, proc_t child, int deadparent, int reparentedtoinit, int locked, int droplock) argument
942 * If we got the child via a ptrace 'attach',
951 if (child
1559 proc_reparentlocked(proc_t child, proc_t parent, int cansignal, int locked) argument
[all...]
H A Dkern_proc.c173 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
974 * child The child process to insert
978 * Notes: Insert a child process into the parents process group, assign
979 * the child the parent process pointer and PPID of the parent,
981 * initialize its own child list, place it in the allproc list,
986 pinsertchild(proc_t parent, proc_t child) argument
990 LIST_INIT(&child->p_children);
991 TAILQ_INIT(&child->p_evlist);
992 child
2318 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child) argument
[all...]
H A Dkern_resource.c124 * of child processes per process.
1104 proc_limitfork(proc_t parent, proc_t child) argument
1107 child->p_limit = parent->p_limit;
1108 child->p_limit->pl_refcnt++;
1109 child->p_olimit = NULL;
/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/osfmk/i386/
H A Dfpu.h95 thread_t child);
H A Dbsd_i386_native.c73 * Duplicate parent state in child
79 thread_t child
84 pcb_t child_pcb = THREAD_TO_PCB(child);
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));
99 * and if so, copy the registers to the child
101 fpu_dup_fxstate(parent, child);
H A Dbsd_i386.c209 void thread_set_child(thread_t child, int pid);
211 thread_set_child(thread_t child, int pid) argument
213 pal_register_cache_state(child, DIRTY);
215 if (thread_is_64bit(child)) {
218 iss64 = USER_REGS64(child);
226 iss32 = USER_REGS32(child);
H A Dfpu.c680 * the child thread is 'stopped' with the thread
689 thread_t child)
700 if (child->machine.ifps)
701 panic("fpu_dup_fxstate: child's ifps non-null");
721 child->machine.ifps = new_ifps;
725 (char *)(child->machine.ifps), fp_register_state_size);
687 fpu_dup_fxstate( thread_t parent, thread_t child) argument
/darwin-on-arm/xnu/osfmk/kern/
H A Daffinity.h58 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);
/darwin-on-arm/xnu/pexpert/gen/
H A Ddevice_tree.c151 RealDTEntry child; local
160 child = GetFirstChild(cur);
162 if (DTGetProperty(child, "name", (void **)&str, &dummy) != kSuccess) {
166 return child;
171 child = GetNextChild(child);
231 // Search child nodes
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Ddtrace_ptss.c290 * The child proc ptss fields are initialized to NULL at fork time.
294 * Parent and child sprlock should be held, and proc_lock must NOT be held.
297 dtrace_ptss_fork(struct proc* parent, struct proc* child) { argument
298 // The child should not have any pages/entries allocated at this point.
299 // ASSERT(child->p_dtrace_ptss_pages == NULL);
300 // ASSERT(child->p_dtrace_ptss_free_list == NULL);
304 * from changing while the child references it. The child's sprlock
307 * neither the parent or child proc_lock should be held.
311 lck_mtx_assert(&child
[all...]
/darwin-on-arm/xnu/libkern/libkern/
H A Dtree.h588 struct type *child, *parent, *old = elm; \
591 child = RB_RIGHT(elm, field); \
593 child = RB_LEFT(elm, field); \
599 child = RB_RIGHT(elm, field); \
602 if (child) \
603 name##_RB_SETPARENT(child, parent); \
606 RB_LEFT(parent, field) = child; \
608 RB_RIGHT(parent, field) = child; \
611 RB_ROOT(head) = child; \
636 if (child) \
[all...]
/darwin-on-arm/xnu/osfmk/arm/
H A Dstatus.c465 * Set the child thread, used in forking.
467 void thread_set_child(thread_t child, int pid) argument
469 assert(child->machine.uss == &child->machine.user_regs);
470 child->machine.uss->r[0] = pid;
471 child->machine.uss->r[1] = 1;
/darwin-on-arm/xnu/iokit/Kernel/
H A DIODeviceTreeSupport.cpp89 IORegistryEntry * child; local
162 child = MakeReferenceTable( dtChild, freeDT );
163 child->attachToParent( parent, gIODTPlane);
165 AddPHandle( child );
169 parent = child;
172 child->release();
209 while( (child = regIter->getNextObject())) {
210 IODTMapInterruptsSharing( child, allInts );
211 if( !intMap && child->getProperty( gIODTInterruptParentKey))
225 while( (child
[all...]
H A DIORegistryEntry.cpp1538 bool IORegistryEntry::isChild( IORegistryEntry * child, argument
1549 ret = arrayMember( links, child );
1551 if( ret && (links = child->getParentSetReference( plane )))
1688 bool IORegistryEntry::attachToChild( IORegistryEntry * child, argument
1695 if( this == child)
1700 ret = makeLink( child, kChildSetIndex, plane );
1702 if( (links = child->getParentSetReference( plane )))
1710 ret &= child->attachToParent( this, plane );
1742 void IORegistryEntry::detachFromChild( IORegistryEntry * child, argument
1750 child
[all...]
H A DIOServicePM.cpp383 * when a power domain child calls requestPowerDomainState and we decide to
384 change power states to accomodate the child,
823 // detach nub from child
869 IOReturn IOService::addPowerChild ( IOService * child )
876 if (!child)
879 if (!initialized || !child->initialized)
882 OUR_PMLog( kPMLogAddChild, (uintptr_t) child, 0 );
885 // Is this child already one of our children?
887 iter = child->getParentIterator( gIOPowerPlane );
906 PM_LOG("%s: %s (%p) is already a child\
1063 IOService * child; local
2093 IOService * child; local
2717 IOService * child; local
4313 IOService * child; // the requesting child member in struct:IOPMRequestDomainPowerContext
[all...]
H A DIOHibernateIO.cpp735 IORegistryEntry * child; local
759 child = next;
761 while ((next = child->getParentEntry(gIOServicePlane))
762 && child->isParent(next, gIOServicePlane, true));
1738 DeviceTreeNode * child; local
1754 child = (DeviceTreeNode *) prop;
1757 if (kSuccess != DTGetProperty(child, "name", (void **) &nameProp, &propLen))
1761 child = MergeDeviceTree(child, childRegEntry);
1763 return (child);
[all...]
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dcontent_protection_test.c96 pid_t child = -1; local
98 child = fork();
100 if (child == -1)
105 else if (child == 0)
113 printf("FAILURE: child failed to execv keystorectl, errno = %s.\n",
118 if ((waitpid(child, &child_result, 0) != child) || WEXITSTATUS(child_result))
/darwin-on-arm/xnu/iokit/IOKit/
H A DIORegistryEntry.h93 @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).
107 @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).
121 @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. */
392 @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).
406 @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).
420 @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).
513 @abstract Returns an iterator over an registry entry's child entrie
[all...]
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_tree.c710 * Given a directory backing node, and a child backing node, add the
712 * represent the child node to the user
723 devfs_propogate(devdirent_t * parent,devdirent_t * child, devfs_event_log_t delp) argument
727 devnode_t * dnp = child->de_dnp;
730 int type = child->de_dnp->dn_type;
750 if ((error = dev_add_entry(child->de_name, adnp, type,
753 printf("duplicating %s failed\n",child->de_name);
873 /* Each parent of a link to this file has lost a child in this plane */
890 /* Each parent of a link to this file has lost a child */
962 * child node
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_dummynet.c623 int child, father, maxelt = h->elements - 1 ; local
629 father = 0 ; /* default: move up smallest child */
641 child = HEAP_LEFT(father) ; /* left child */
642 while (child <= maxelt) { /* valid entry */
643 if (child != maxelt && DN_KEY_LT(h->p[child+1].key, h->p[child].key) )
644 child = child
[all...]

Completed in 209 milliseconds

12