summaryrefslogtreecommitdiff
path: root/utility/include/dump_kernel_config.h
blob: 2289da725fe6cd46749b1a753337112d4640b6cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * Exports the kernel commandline from a given partition/image.
 */

#ifndef DUMP_KERNEL_CONFIG_UTILITY_H_
#define DUMP_KERNEL_CONFIG_UTILITY_H_

#include <inttypes.h>
#include <stdlib.h>

uint8_t* FindKernelConfig(uint8_t* blob, uint64_t blob_size,
                            uint64_t kernel_body_load_address);

void* MMapFile(const char* filename, size_t *size);

#endif  // DUMP_KERNEL_CONFIG_UTILITY_H_