OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
MkextInternal.h File Reference

Go to the source code of this file.

Data Structures

struct  MKEXT_KEXT
 

Macros

#define MKEXT_KEXT_SIGNATURE   SIGNATURE_32 ('M', 'k', 'x', 'T')
 
#define GET_MKEXT_KEXT_FROM_LINK(This)
 

Functions

VOID InternalDropCachedMkextKext (IN OUT MKEXT_CONTEXT *Context, IN CONST CHAR8 *Identifier)
 
EFI_STATUS InternalGetMkextV1KextOffsets (IN OUT MKEXT_CONTEXT *Context, IN CONST CHAR8 *Identifier, OUT UINT32 *KextIndex, OUT UINT32 *KextPlistOffset, OUT UINT32 *KextPlistSize, OUT UINT32 *KextBinOffset, OUT UINT32 *KextBinSize)
 
MKEXT_KEXTInternalCachedMkextKext (IN OUT MKEXT_CONTEXT *Context, IN CONST CHAR8 *BundleId)
 
BOOLEAN InternalParseKextBinary (IN OUT UINT8 **Buffer, IN OUT UINT32 *BufferSize, IN BOOLEAN Is32Bit)
 

Detailed Description

Mkext support.

Copyright (c) 2020, Goldfish64. 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 MkextInternal.h.

Macro Definition Documentation

◆ GET_MKEXT_KEXT_FROM_LINK

#define GET_MKEXT_KEXT_FROM_LINK ( This)
Value:
(CR ( \
(This), \
Link, \
))
#define MKEXT_KEXT_SIGNATURE

Gets the next element in CachedKexts list of MKEXT_KEXT.

Parameters
[in]ThisThe current ListEntry.

Definition at line 57 of file MkextInternal.h.

◆ MKEXT_KEXT_SIGNATURE

#define MKEXT_KEXT_SIGNATURE   SIGNATURE_32 ('M', 'k', 'x', 'T')

Definition at line 50 of file MkextInternal.h.

Function Documentation

◆ InternalCachedMkextKext()

MKEXT_KEXT * InternalCachedMkextKext ( IN OUT MKEXT_CONTEXT * Context,
IN CONST CHAR8 * BundleId )

Definition at line 422 of file MkextContext.c.

◆ InternalDropCachedMkextKext()

VOID InternalDropCachedMkextKext ( IN OUT MKEXT_CONTEXT * Context,
IN CONST CHAR8 * Identifier )

Definition at line 263 of file MkextContext.c.

◆ InternalGetMkextV1KextOffsets()

EFI_STATUS InternalGetMkextV1KextOffsets ( IN OUT MKEXT_CONTEXT * Context,
IN CONST CHAR8 * Identifier,
OUT UINT32 * KextIndex,
OUT UINT32 * KextPlistOffset,
OUT UINT32 * KextPlistSize,
OUT UINT32 * KextBinOffset,
OUT UINT32 * KextBinSize )

Definition at line 296 of file MkextContext.c.

◆ InternalParseKextBinary()

BOOLEAN InternalParseKextBinary ( IN OUT UINT8 ** Buffer,
IN OUT UINT32 * BufferSize,
IN BOOLEAN Is32Bit )

Definition at line 36 of file MkextContext.c.