1 /*******************************************************************************
2 *
3 * Module Name: nssearch - Namespace search
4 *
5 ******************************************************************************/
6
7 /*
8 * Copyright (C) 2000 - 2011, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
404 /* Node is an object defined by an External() statement */
405
406 if (Flags & ACPI_NS_EXTERNAL ||
407 (WalkState && WalkState->Opcode == AML_SCOPE_OP))
408 {
409 NewNode->Flags |= ANOBJ_IS_EXTERNAL;
410 }
411 #endif
412
413 if (Flags & ACPI_NS_TEMPORARY)
414 {
415 NewNode->Flags |= ANOBJ_TEMPORARY;
416 }
417
418 /* Install the new object into the parent's list of children */
419
420 AcpiNsInstallNode (WalkState, Node, NewNode, Type);
421 *ReturnNode = NewNode;
422 return_ACPI_STATUS (AE_OK);
423 }
424
|
1 /*******************************************************************************
2 *
3 * Module Name: nssearch - Namespace search
4 *
5 ******************************************************************************/
6
7 /*
8 * Copyright (C) 2000 - 2014, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
404 /* Node is an object defined by an External() statement */
405
406 if (Flags & ACPI_NS_EXTERNAL ||
407 (WalkState && WalkState->Opcode == AML_SCOPE_OP))
408 {
409 NewNode->Flags |= ANOBJ_IS_EXTERNAL;
410 }
411 #endif
412
413 if (Flags & ACPI_NS_TEMPORARY)
414 {
415 NewNode->Flags |= ANOBJ_TEMPORARY;
416 }
417
418 /* Install the new object into the parent's list of children */
419
420 AcpiNsInstallNode (WalkState, Node, NewNode, Type);
421 *ReturnNode = NewNode;
422 return_ACPI_STATUS (AE_OK);
423 }
|