OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcApfsLib.c File Reference
#include "OcApfsInternal.h"
#include <Library/OcApfsLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Protocol/BlockIo.h>
#include <Protocol/PartitionInfo.h>

Go to the source code of this file.

Functions

STATIC VOID EFIAPI ApfsNewPartitionArrived (IN EFI_EVENT Event, IN VOID *Context)
 
STATIC EFI_STATUS ApfsMonitorNewPartitions (VOID)
 
EFI_STATUS OcApfsConnectParentDevice (IN EFI_HANDLE Handle OPTIONAL, IN BOOLEAN VerifyPolicy)
 
EFI_STATUS OcApfsConnectDevices (IN BOOLEAN Monitor)
 

Variables

STATIC VOID * mApfsNewPartitionsEventKey
 

Detailed Description

Copyright (C) 2020, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file OcApfsLib.c.

Function Documentation

◆ ApfsMonitorNewPartitions()

STATIC EFI_STATUS ApfsMonitorNewPartitions ( VOID )

Definition at line 59 of file OcApfsLib.c.

◆ ApfsNewPartitionArrived()

STATIC VOID EFIAPI ApfsNewPartitionArrived ( IN EFI_EVENT Event,
IN VOID * Context )

Definition at line 31 of file OcApfsLib.c.

◆ OcApfsConnectDevices()

EFI_STATUS OcApfsConnectDevices ( IN BOOLEAN Monitor)

Connect APFS driver to all present devices.

Parameters
[in]MonitorSetup monitoring for newly connected devices.
Return values
EFI_SUCCESSif at least one device was connected.

Definition at line 169 of file OcApfsLib.c.

◆ OcApfsConnectParentDevice()

EFI_STATUS OcApfsConnectParentDevice ( IN EFI_HANDLE Handle OPTIONAL,
IN BOOLEAN VerifyPolicy )

Connect APFS driver to partitions on media handle.

Parameters
[in]HandleMedia handle (disk).
[in]VerifyPolicyApply ScanPolicy rules.
Return values
EFI_SUCCESSif the device was connected.

Definition at line 90 of file OcApfsLib.c.

Variable Documentation

◆ mApfsNewPartitionsEventKey

STATIC VOID* mApfsNewPartitionsEventKey

Definition at line 26 of file OcApfsLib.c.