FreeBSD/sys/contrib/dev/acpica/components/utilities/utxfmutex.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiReleaseMutex
 *
 * PARAMETERS:  Handle              - Mutex or prefix handle (optional)
 *              Pathname            - Mutex pathname (optional)
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Release an AML mutex. This is a device driver interface to
 *              AML mutex objects, and allows for transaction locking between
 *              drivers and AML code. The mutex node is pointed to by
 *              Handle:Pathname. Either Handle or Pathname can be NULL, but
 *              not both.
 *
 ******************************************************************************/
AcpiReleaseMutex
PARAMETERS:  Handle              - Mutex or prefix handle (optional)
Pathname            - Mutex pathname (optional)

Status

Release an AML mutex. This is a device driver interface to
AML mutex objects, and allows for transaction locking between
drivers and AML code. The mutex node is pointed to by
Handle:Pathname. Either Handle or Pathname can be NULL, but
not both.
AcpiReleaseMutex PARAMETERS : Handle - Mutex or prefix handle ( optional ) Pathname - Mutex pathname ( optional ) Status Release an AML mutex . This is a device driver interface to AML mutex objects and allows for transaction locking between drivers and AML code . The mutex node is pointed to by Handle : Pathname . Either Handle or Pathname can be NULL but not both .
ACPI_STATUS
AcpiReleaseMutex (
    ACPI_HANDLE             Handle,
    ACPI_STRING             Pathname)
{
    ACPI_STATUS             Status;
    ACPI_OPERAND_OBJECT     *MutexObj;
    Status = AcpiUtGetMutexObject (Handle, Pathname, &MutexObj);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    AcpiOsReleaseMutex (MutexObj->Mutex.OsMutex);
    return (AE_OK);
}
ACPI_STATUS AcpiReleaseMutex ( ACPI_HANDLE Handle , ACPI_STRING Pathname ) { ACPI_STATUS Status ; ACPI_OPERAND_OBJECT * MutexObj ; Status = AcpiUtGetMutexObject ( Handle , Pathname , & MutexObj ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } AcpiOsReleaseMutex ( MutexObj -> Mutex . OsMutex ) ; return ( AE_OK ) ; }
FUNCTION:    AcpiReleaseMutex
 PARAMETERS:  Handle              - Mutex or prefix handle (optional)
              Pathname            - Mutex pathname (optional)
FUNCTION : AcpiReleaseMutex PARAMETERS : Handle - Mutex or prefix handle ( optional ) Pathname - Mutex pathname ( optional )
/* Get the low-level mutex associated with Handle:Pathname */ /* Release the OS mutex */