Deleted Added
full compact
nsxfeval.c (199337) nsxfeval.c (200553)
1/*******************************************************************************
2 *
3 * Module Name: nsxfeval - Public interfaces to the ACPI subsystem
4 * ACPI Object evaluation interfaces
5 *
6 ******************************************************************************/
7
8/******************************************************************************

--- 267 unchanged lines hidden (view full) ---

276 {
277 return_ACPI_STATUS (AE_NO_MEMORY);
278 }
279
280 Info->Pathname = Pathname;
281
282 /* Convert and validate the device handle */
283
1/*******************************************************************************
2 *
3 * Module Name: nsxfeval - Public interfaces to the ACPI subsystem
4 * ACPI Object evaluation interfaces
5 *
6 ******************************************************************************/
7
8/******************************************************************************

--- 267 unchanged lines hidden (view full) ---

276 {
277 return_ACPI_STATUS (AE_NO_MEMORY);
278 }
279
280 Info->Pathname = Pathname;
281
282 /* Convert and validate the device handle */
283
284 Info->PrefixNode = AcpiNsMapHandleToNode (Handle);
284 Info->PrefixNode = AcpiNsValidateHandle (Handle);
285 if (!Info->PrefixNode)
286 {
287 Status = AE_BAD_PARAMETER;
288 goto Cleanup;
289 }
290
291 /*
292 * If there are parameters to be passed to a control method, the external

--- 378 unchanged lines hidden (view full) ---

671
672
673 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
674 if (ACPI_FAILURE (Status))
675 {
676 return (Status);
677 }
678
285 if (!Info->PrefixNode)
286 {
287 Status = AE_BAD_PARAMETER;
288 goto Cleanup;
289 }
290
291 /*
292 * If there are parameters to be passed to a control method, the external

--- 378 unchanged lines hidden (view full) ---

671
672
673 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
674 if (ACPI_FAILURE (Status))
675 {
676 return (Status);
677 }
678
679 Node = AcpiNsMapHandleToNode (ObjHandle);
679 Node = AcpiNsValidateHandle (ObjHandle);
680 Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
681 if (ACPI_FAILURE (Status))
682 {
683 return (Status);
684 }
685
686 if (!Node)
687 {

--- 195 unchanged lines hidden (view full) ---

883 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
884 if (ACPI_FAILURE (Status))
885 {
886 return (Status);
887 }
888
889 /* Convert and validate the handle */
890
680 Status = AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
681 if (ACPI_FAILURE (Status))
682 {
683 return (Status);
684 }
685
686 if (!Node)
687 {

--- 195 unchanged lines hidden (view full) ---

883 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
884 if (ACPI_FAILURE (Status))
885 {
886 return (Status);
887 }
888
889 /* Convert and validate the handle */
890
891 Node = AcpiNsMapHandleToNode (ObjHandle);
891 Node = AcpiNsValidateHandle (ObjHandle);
892 if (!Node)
893 {
894 Status = AE_BAD_PARAMETER;
895 goto UnlockAndExit;
896 }
897
898 Status = AcpiNsAttachData (Node, Handler, Data);
899

--- 38 unchanged lines hidden (view full) ---

938 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
939 if (ACPI_FAILURE (Status))
940 {
941 return (Status);
942 }
943
944 /* Convert and validate the handle */
945
892 if (!Node)
893 {
894 Status = AE_BAD_PARAMETER;
895 goto UnlockAndExit;
896 }
897
898 Status = AcpiNsAttachData (Node, Handler, Data);
899

--- 38 unchanged lines hidden (view full) ---

938 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
939 if (ACPI_FAILURE (Status))
940 {
941 return (Status);
942 }
943
944 /* Convert and validate the handle */
945
946 Node = AcpiNsMapHandleToNode (ObjHandle);
946 Node = AcpiNsValidateHandle (ObjHandle);
947 if (!Node)
948 {
949 Status = AE_BAD_PARAMETER;
950 goto UnlockAndExit;
951 }
952
953 Status = AcpiNsDetachData (Node, Handler);
954

--- 41 unchanged lines hidden (view full) ---

996 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
997 if (ACPI_FAILURE (Status))
998 {
999 return (Status);
1000 }
1001
1002 /* Convert and validate the handle */
1003
947 if (!Node)
948 {
949 Status = AE_BAD_PARAMETER;
950 goto UnlockAndExit;
951 }
952
953 Status = AcpiNsDetachData (Node, Handler);
954

--- 41 unchanged lines hidden (view full) ---

996 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
997 if (ACPI_FAILURE (Status))
998 {
999 return (Status);
1000 }
1001
1002 /* Convert and validate the handle */
1003
1004 Node = AcpiNsMapHandleToNode (ObjHandle);
1004 Node = AcpiNsValidateHandle (ObjHandle);
1005 if (!Node)
1006 {
1007 Status = AE_BAD_PARAMETER;
1008 goto UnlockAndExit;
1009 }
1010
1011 Status = AcpiNsGetAttachedData (Node, Handler, Data);
1012
1013UnlockAndExit:
1014 (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
1015 return (Status);
1016}
1017
1018ACPI_EXPORT_SYMBOL (AcpiGetData)
1019
1020
1005 if (!Node)
1006 {
1007 Status = AE_BAD_PARAMETER;
1008 goto UnlockAndExit;
1009 }
1010
1011 Status = AcpiNsGetAttachedData (Node, Handler, Data);
1012
1013UnlockAndExit:
1014 (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
1015 return (Status);
1016}
1017
1018ACPI_EXPORT_SYMBOL (AcpiGetData)
1019
1020