blob: 40ae3f5e33b02b401ca7bd6c098acd8ec6c27dbe [file] [log] [blame]
// Copyright 2016 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 <mx/vmo.h>
#include <magenta/syscalls.h>
namespace mx {
mx_status_t vmo::create(uint64_t size, uint32_t options, vmo* result) {
mx_handle_t h = MX_HANDLE_INVALID;
mx_status_t status = mx_vmo_create(size, options, &h);
result->reset(h);
return status;
}
} // namespace mx