OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ValidateKernel.c File Reference
#include "ocvalidate.h"
#include "OcValidateLib.h"
#include "KextInfo.h"
#include <Library/OcAppleKernelLib.h>

Go to the source code of this file.

Functions

STATIC BOOLEAN KernelAddHasDuplication (IN CONST VOID *PrimaryEntry, IN CONST VOID *SecondaryEntry)
 
STATIC BOOLEAN KernelBlockHasDuplication (IN CONST VOID *PrimaryEntry, IN CONST VOID *SecondaryEntry)
 
STATIC BOOLEAN KernelForceHasDuplication (IN CONST VOID *PrimaryEntry, IN CONST VOID *SecondaryEntry)
 
STATIC UINT32 CheckKernelAdd (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckKernelBlock (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckKernelEmulate (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckKernelForce (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckKernelPatch (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckKernelQuirks (IN OC_GLOBAL_CONFIG *Config)
 
STATIC UINT32 CheckKernelScheme (IN OC_GLOBAL_CONFIG *Config)
 
UINT32 CheckKernel (IN OC_GLOBAL_CONFIG *Config)
 

Detailed Description

Copyright (C) 2018, vit9696. All rights reserved. Copyright (C) 2020, PMheart. 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 ValidateKernel.c.

Function Documentation

◆ CheckKernel()

UINT32 CheckKernel ( IN OC_GLOBAL_CONFIG * Config)

Validate OpenCore Configuration Kernel Section.

Parameters
[in]ConfigConfiguration structure.
Returns
Number of errors detected in Kernel Section.

Definition at line 781 of file ValidateKernel.c.

◆ CheckKernelAdd()

STATIC UINT32 CheckKernelAdd ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 123 of file ValidateKernel.c.

◆ CheckKernelBlock()

STATIC UINT32 CheckKernelBlock ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 360 of file ValidateKernel.c.

◆ CheckKernelEmulate()

STATIC UINT32 CheckKernelEmulate ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 445 of file ValidateKernel.c.

◆ CheckKernelForce()

STATIC UINT32 CheckKernelForce ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 497 of file ValidateKernel.c.

◆ CheckKernelPatch()

STATIC UINT32 CheckKernelPatch ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 613 of file ValidateKernel.c.

◆ CheckKernelQuirks()

STATIC UINT32 CheckKernelQuirks ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 714 of file ValidateKernel.c.

◆ CheckKernelScheme()

STATIC UINT32 CheckKernelScheme ( IN OC_GLOBAL_CONFIG * Config)

Definition at line 748 of file ValidateKernel.c.

◆ KernelAddHasDuplication()

STATIC BOOLEAN KernelAddHasDuplication ( IN CONST VOID * PrimaryEntry,
IN CONST VOID * SecondaryEntry )

Callback function to verify whether BundlePath is duplicated in Kernel->Add.

Parameters
[in]PrimaryEntryPrimary entry to be checked.
[in]SecondaryEntrySecondary entry to be checked.
Return values
TRUEIf PrimaryEntry and SecondaryEntry are duplicated.

Definition at line 32 of file ValidateKernel.c.

◆ KernelBlockHasDuplication()

STATIC BOOLEAN KernelBlockHasDuplication ( IN CONST VOID * PrimaryEntry,
IN CONST VOID * SecondaryEntry )

Callback function to verify whether Identifier is duplicated in Kernel->Block.

Parameters
[in]PrimaryEntryPrimary entry to be checked.
[in]SecondaryEntrySecondary entry to be checked.
Return values
TRUEIf PrimaryEntry and SecondaryEntry are duplicated.

Definition at line 64 of file ValidateKernel.c.

◆ KernelForceHasDuplication()

STATIC BOOLEAN KernelForceHasDuplication ( IN CONST VOID * PrimaryEntry,
IN CONST VOID * SecondaryEntry )

Callback function to verify whether BundlePath is duplicated in Kernel->Force.

Parameters
[in]PrimaryEntryPrimary entry to be checked.
[in]SecondaryEntrySecondary entry to be checked.
Return values
TRUEIf PrimaryEntry and SecondaryEntry are duplicated.

Definition at line 96 of file ValidateKernel.c.