/xnu-2422.115.4/bsd/miscfs/mockfs/ |
H A D | mockfs_fsnode.c | 150 if (fsnp->parent) 161 * Given two nodes (parent, child), makes one node the child of the other node. 165 int mockfs_fsnode_adopt(mockfs_fsnode_t parent, mockfs_fsnode_t child) argument 172 * The child must be an orphan, and the parent cannot be the child. 174 if ((!parent || !child || child->parent) && (parent != child)) { 182 if (parent->mnt != child->mnt) { 189 * TODO: Enforce that the parent cannot have two children of the same type (for the moment, this is 193 * Can the parent suppor 219 mockfs_fsnode_t parent; local 262 mockfs_fsnode_child_by_type(mockfs_fsnode_t parent, uint8_t type, mockfs_fsnode_t * child) argument [all...] |
H A D | mockfs_fsnode.h | 65 struct mockfs_fsnode * parent; /* Parent of this node (NULL for root) */ member in struct:mockfs_fsnode 78 int mockfs_fsnode_adopt(mockfs_fsnode_t parent, mockfs_fsnode_t child); 80 int mockfs_fsnode_child_by_type(mockfs_fsnode_t parent, uint8_t type, mockfs_fsnode_t * child);
|
/xnu-2422.115.4/libkern/ |
H A D | mkext.c | 89 * left & right children & parent. These constitute binary search trees. 91 int lchild[N + 1], rchild[N + 257], parent[N + 1]; member in struct:encode_state 160 * children of node i. These nodes need not be initialized. Also, parent[i] 161 * is the parent of node i. These are initialized to NIL (= N), which stands 176 sp->parent[i] = NIL; 203 sp->parent[r] = p; 211 sp->parent[r] = p; 225 sp->parent[r] = sp->parent[p]; 228 sp->parent[s [all...] |
/xnu-2422.115.4/libkern/libkern/ |
H A D | tree.h | 79 * - 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...] |
/xnu-2422.115.4/iokit/Kernel/ |
H A D | IOSubMemoryDescriptor.cpp | 60 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 D | IODeviceTreeSupport.cpp | 88 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 984 IORegistryEntry *parent; local 1169 IODTGetNVLocation( IORegistryEntry * parent, IORegistryEntry * regEntry, UInt8 * busNum, UInt8 * deviceNum, UInt8 * functionNum ) argument 1205 IORegistryEntry *parent; local 1237 IORegistryEntry *parent; local [all...] |
H A D | IORegistryEntry.cpp | 889 const IORegistryEntry * parent; local 925 parent = entry = this; 927 while (parent && (parent != root)) 930 entry = parent; 931 parent = entry->getParentEntry( plane ); 935 ok = (0 != parent); 1554 bool IORegistryEntry::isParent( IORegistryEntry * parent, argument 1566 ret = arrayMember( links, parent ); 1568 if( ret && (links = parent 1620 attachToParent( IORegistryEntry * parent, const IORegistryPlane * plane ) argument 1710 detachFromParent( IORegistryEntry * parent, const IORegistryPlane * plane ) argument 1764 IORegistryEntry * parent; local [all...] |
/xnu-2422.115.4/osfmk/i386/ |
H A D | bsd_i386_native.c | 73 * Duplicate parent state in child 78 thread_t parent, 83 pcb_t parent_pcb = THREAD_TO_PCB(parent); 89 if (thread_is_64bit(parent)) 90 bcopy(USER_REGS64(parent), USER_REGS64(child), sizeof(x86_saved_state64_t)); 92 bcopy(USER_REGS32(parent), USER_REGS32(child), sizeof(x86_saved_state32_t)); 95 * Check to see if parent is using floating point 98 fpu_dup_fxstate(parent, child); 102 * Copy the parent's cthread id and USER_CTHREAD descriptor, if 32-bit. 105 if (!thread_is_64bit(parent)) 77 machine_thread_dup( thread_t parent, thread_t child ) argument 125 thread_set_parent(thread_t parent, int pid) argument [all...] |
H A D | fpu.h | 94 thread_t parent,
|
/xnu-2422.115.4/bsd/sys/ |
H A D | sysctl.h | 299 #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 D | dtrace_ptss.h | 60 * 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 D | resourcevar.h | 138 void proc_limitfork(proc_t parent, proc_t child);
|
/xnu-2422.115.4/bsd/net/ |
H A D | pf_ruleset.c | 253 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...] |
/xnu-2422.115.4/security/ |
H A D | mac_task.c | 101 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);
|
/xnu-2422.115.4/bsd/miscfs/devfs/ |
H A D | devfs_tree.c | 260 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...] |
H A D | devfs_proto.h | 47 int dev_add_entry(const char *name, devnode_t * parent, int type, devnode_type_t * typeinfo,
|
/xnu-2422.115.4/osfmk/kern/ |
H A D | affinity.h | 58 extern void thread_affinity_dup(thread_t parent, thread_t child);
|
H A D | ipc_tt.h | 78 task_t parent);
|
H A D | affinity.c | 300 * 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); 421 * after removing it from the parent task. 487 * Find an affinity set in the parent tas [all...] |
H A D | ipc_tt.c | 110 * 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) { 176 itk_lock(parent); 177 assert(parent->itk_self != IP_NULL); 183 ipc_port_copy_send(parent 117 ipc_task_init( task_t task, task_t parent) argument [all...] |
/xnu-2422.115.4/tools/tests/unit_tests/ptrace_test_12507045_src/ |
H A D | ptrace_test.c | 19 * grandparent -> parent -> child 28 * grandparent -> parent/debugger -> child 48 void do_grandparent(pid_t parent, pid_t child, pid_t debugger, debugger_exit_t debugger_exit_time) __attribute__((noreturn)); 106 pid_t parent, child, debugger; local 110 /* pipe for parent to send child pid to grandparent */ 116 parent = fork(); 117 if (parent == 0) { 118 /* parent sub-branch */ 135 err(1, "parent failed to fork child"); 137 /* parent */ 254 do_grandparent(pid_t parent, pid_t child, pid_t debugger, debugger_exit_t debugger_exit_time) argument [all...] |
/xnu-2422.115.4/bsd/dev/dtrace/ |
H A D | dtrace_ptss.c | 279 * Pages allocated in the parent are copied as part of the vm_map copy, though. 285 dtrace_ptss_fork(struct proc* parent, struct proc* child) { argument 291 * The parent's sprlock should be held, to protect its pages list 295 * neither the parent or child proc_lock should be held. 297 lck_mtx_assert(&parent->p_dtrace_sprlock, LCK_MTX_ASSERT_OWNED); 298 lck_mtx_assert(&parent->p_mlock, LCK_MTX_ASSERT_NOTOWNED); 303 struct dtrace_ptss_page* temp = parent->p_dtrace_ptss_pages; 309 // Do not free the kernel memory, it belong to the parent.
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | ip_fw2.h | 434 /* '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...] |
/xnu-2422.115.4/iokit/IOKit/ |
H A D | IOSubMemoryDescriptor.h | 51 @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 D | IODeviceTreeSupport.h | 93 IODeviceMemory * parent );
|