blob: a27f3378dee39706e32e420f6fdb4e452d6e1746 [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;
protocol resource {
/// Create a resource object.
/// Rights: parent_rsrc must be of type ZX_OBJ_TYPE_RESOURCE and have ZX_RIGHT_WRITE.
resource_create(resource struct {
parent_rsrc handle:RESOURCE;
options uint32;
base uint64;
size usize;
name string;
}) -> (resource struct {
status status;
resource_out handle:RESOURCE;