blob: 6c1238093a4add329dd8e7618a9b101ec7d6746f [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <inttypes.h>
#include <zircon/compiler.h>
#include <zircon/device/ram-nand.h>
__BEGIN_CDECLS
// Creates a ram_nand, returning the full path to the new device. The provided
// buffer for the path should be at least PATH_MAX characters long.
//
// Returns 0 on success.
int create_ram_nand(const nand_info_t* config, char* out_path);
// Destroys a ram_nand, given the name returned from create_ram_nand().
//
// Returns 0 on success.
int destroy_ram_nand(const char* ram_nand_path);
__END_CDECLS