blob: b4c2ec5ccdc519934ff2831b11a46f3134a51af7 [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.
#include <lib/zx/resource.h>
#include <zircon/syscalls.h>
namespace zx {
zx_status_t resource::create(const resource& parent, uint32_t options, uint64_t base, size_t len,
const char* name, size_t namelen, resource* result) {
resource h;
zx_status_t status = zx_resource_create(parent.get(), options, base, len, name, namelen,
return status;
} // namespace zx