MCPcopy Create free account
hub / github.com/coreboot/coreboot / buffer_get_original_backing

Function buffer_get_original_backing

util/cbfstool/common.h:120–125  ·  view source on GitHub ↗

Returns the start of the underlying buffer, with the offset undone */

Source from the content-addressed store, hash-verified

118
119/* Returns the start of the underlying buffer, with the offset undone */
120static inline void *buffer_get_original_backing(const struct buffer *b)
121{
122 if (!b)
123 return NULL;
124 return buffer_get(b) - buffer_offset(b);
125}
126
127/* Creates an empty memory buffer with given size.
128 * Returns 0 on success, otherwise non-zero. */

Callers 3

cbfs_add_master_headerFunction · 0.85
buffer_deleteFunction · 0.85
cbfs_find_first_entryFunction · 0.85

Calls 2

buffer_getFunction · 0.85
buffer_offsetFunction · 0.85

Tested by

no test coverage detected