coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbfs_mdata.h File Reference
#include <commonlib/bsd/cbfs_serialized.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for cbfs_mdata.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  cbfs_mdata
 

Functions

const voidcbfs_find_attr (const union cbfs_mdata *mdata, uint32_t attr_tag, size_t size_check)
 
const struct vb2_hash * cbfs_file_hash (const union cbfs_mdata *mdata)
 

Function Documentation

◆ cbfs_file_hash()

const struct vb2_hash* cbfs_file_hash ( const union cbfs_mdata mdata)

Definition at line 199 of file cbfs_private.c.

References be32toh(), CBFS_FILE_ATTR_TAG_HASH, cbfs_find_attr(), ERROR, cbfs_file::filename, cbfs_mdata::h, cbfs_file_attr_hash::hash, cbfs_file_attr_hash::len, NULL, and offsetof.

Referenced by cbfs_file_hash_mismatch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cbfs_find_attr()

const void* cbfs_find_attr ( const union cbfs_mdata mdata,
uint32_t  attr_tag,
size_t  size_check 
)

Definition at line 167 of file cbfs_private.c.

References cbfs_file::attributes_offset, be32toh(), ERROR, cbfs_file::filename, cbfs_mdata::h, cbfs_file_attribute::len, NULL, cbfs_file::offset, offset, cbfs_mdata::raw, and cbfs_file_attribute::tag.

Referenced by cbfs_file_hash(), do_alloc(), and rmodule_cbfs_allocator().

Here is the call graph for this function:
Here is the caller graph for this function: