summaryrefslogtreecommitdiff
path: root/stand/kboot/include/util.h
blob: dabf3d1ba9fb7a8051f06a10ab2fb5c0e326c578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*-
 * Copyright (c) 2022, Netflix, Inc.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

/* dfk.c: */
bool data_from_kernel(const char *sym, void *buf, size_t len);

/* util.c: */
bool file2str(const char *fn, char *buffer, size_t buflen);
bool file2u32(const char *fn, uint32_t *val);
bool file2u64(const char *fn, uint64_t *val);