kernel/acpica/compiler/cvparser.c
/*******************************************************************************
 *
 * FUNCTION:    CvSetFileParent
 *
 * PARAMETERS:  ChildFile  - contains the filename of the child file
 *              ParentFile - contains the filename of the parent file.
 *
 * RETURN:      None
 *
 * DESCRIPTION: Point the parent pointer of the Child to the node that
 *              corresponds with the parent file node.
 *
 ******************************************************************************/
CvSetFileParent
PARAMETERS:  ChildFile  - contains the filename of the child file
ParentFile - contains the filename of the parent file.

None

Point the parent pointer of the Child to the node that
corresponds with the parent file node.
CvSetFileParent PARAMETERS : ChildFile - contains the filename of the child file ParentFile - contains the filename of the parent file . None Point the parent pointer of the Child to the node that corresponds with the parent file node .
static void
CvSetFileParent (
    char                    *ChildFile,
    char                    *ParentFile)
{
    ACPI_FILE_NODE          *Child;
    ACPI_FILE_NODE          *Parent;
    Child  = CvFilenameExists (ChildFile, AcpiGbl_FileTreeRoot);
    Parent = CvFilenameExists (ParentFile, AcpiGbl_FileTreeRoot);
    if (Child && Parent)
    {
        Child->Parent = Parent;
        while (Child->Parent)
        {
            if (Child->Parent->FileEnd < Child->FileStart)
            {
                Child->Parent->FileEnd = Child->FileStart;
            }
            Child = Child->Parent;
        }
    }
}
static void CvSetFileParent ( char * ChildFile , char * ParentFile ) { ACPI_FILE_NODE * Child ; ACPI_FILE_NODE * Parent ; Child = CvFilenameExists ( ChildFile , AcpiGbl_FileTreeRoot ) ; Parent = CvFilenameExists ( ParentFile , AcpiGbl_FileTreeRoot ) ; if ( Child && Parent ) { Child -> Parent = Parent ; while ( Child -> Parent ) { if ( Child -> Parent -> FileEnd < Child -> FileStart ) { Child -> Parent -> FileEnd = Child -> FileStart ; } Child = Child -> Parent ; } } }
FUNCTION:    CvSetFileParent
 PARAMETERS:  ChildFile  - contains the filename of the child file
              ParentFile - contains the filename of the parent file.
FUNCTION : CvSetFileParent PARAMETERS : ChildFile - contains the filename of the child file ParentFile - contains the filename of the parent file .