blob: 8f298418cf7b0f8d8d93992a24e8e19f11d5b307 [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