blob: eecf0a1534e60a42b02d4fb45e8f9e6dc2f9108e [file] [log] [blame]
// Copyright 2019 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.
library zx;
[Transport = "Syscall"]
protocol resource {
/// Create a resource object.
/// Rights: parent_rsrc must be of type ZX_OBJ_TYPE_RESOURCE and have ZX_RIGHT_WRITE.
resource_create(handle<resource> parent_rsrc,
uint32 options,
uint64 base,
usize size,
string name)
-> (status status, handle<resource> resource_out);