xref: /freebsd/stand/kboot/include/util.h (revision f3c0d74e3b8e969b9f790f4ec2ac173243f21920)
1b2bd8c9aSWarner Losh /*-
2b2bd8c9aSWarner Losh  * Copyright (c) 2022, Netflix, Inc.
3b2bd8c9aSWarner Losh  *
4b2bd8c9aSWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
5b2bd8c9aSWarner Losh  */
6b2bd8c9aSWarner Losh 
7b2bd8c9aSWarner Losh #pragma once
8b2bd8c9aSWarner Losh 
9*f3c0d74eSWarner Losh /* dfk.c: */
10*f3c0d74eSWarner Losh bool data_from_kernel(const char *sym, void *buf, size_t len);
11*f3c0d74eSWarner Losh 
12*f3c0d74eSWarner Losh /* util.c: */
13b2bd8c9aSWarner Losh bool file2str(const char *fn, char *buffer, size_t buflen);
1414acbf61SWarner Losh bool file2u32(const char *fn, uint32_t *val);
15b2bd8c9aSWarner Losh bool file2u64(const char *fn, uint64_t *val);
16