Lines Matching defs:child
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)
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) {
193 * Can the parent support another child (food, shelter, unused pointers)?
196 parent->child_a = child;
197 child->parent = parent;
200 parent->child_b = child;
201 child->parent = parent;
245 panic("mockfs_fsnode_orphan insanity, fsnp->parent != parent->child; fsnp = %p (in case gdb is screwing with you)", fsnp);
253 * Given a node (parent) and a type (type), returns the first child (*child) found corresponding to the
262 int mockfs_fsnode_child_by_type(mockfs_fsnode_t parent, uint8_t type, mockfs_fsnode_t * child)
268 if (!parent || !child) {
274 *child = parent->child_a;
276 *child = parent->child_b;