FreeBSD/sys/contrib/dev/acpica/components/utilities/utlock.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiUtAcquireWriteLock
 *              AcpiUtReleaseWriteLock
 *
 * PARAMETERS:  Lock                - Pointer to a valid RW lock
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Writer interfaces for reader/writer locks. Simply acquire or
 *              release the writer mutex associated with the lock. Acquisition
 *              of the lock is fully exclusive and will block all readers and
 *              writers until it is released.
 *
 ******************************************************************************/


Lock                - Pointer to a valid RW lock

Status

Writer interfaces for reader/writer locks. Simply acquire or
release the writer mutex associated with the lock. Acquisition
of the lock is fully exclusive and will block all readers and
writers until it is released.
Lock - Pointer to a valid RW lock Status Writer interfaces for reader / writer locks . Simply acquire or release the writer mutex associated with the lock . Acquisition of the lock is fully exclusive and will block all readers and writers until it is released .
ACPI_STATUS
AcpiUtAcquireWriteLock (
    ACPI_RW_LOCK            *Lock)
{
    ACPI_STATUS             Status;
    Status = AcpiOsAcquireMutex (Lock->WriterMutex, ACPI_WAIT_FOREVER);
    return (Status);
}
ACPI_STATUS AcpiUtAcquireWriteLock ( ACPI_RW_LOCK * Lock ) { ACPI_STATUS Status ; Status = AcpiOsAcquireMutex ( Lock -> WriterMutex , ACPI_WAIT_FOREVER ) ; return ( Status ) ; }
FUNCTION:    AcpiUtAcquireWriteLock
              AcpiUtReleaseWriteLock
FUNCTION : AcpiUtAcquireWriteLock AcpiUtReleaseWriteLock