blob: 67d36604e499b4feceb17ad753506f40ed2c8fda [file] [log] [blame] [edit]
// Copyright 2021 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.
use fidl_fuchsia_kernel as fkernel;
use fuchsia_component::client::connect_to_protocol_sync;
use fuchsia_zircon as zx;
use once_cell::sync::Lazy;
pub static VMEX_RESOURCE: Lazy<zx::Resource> = Lazy::new(|| {
connect_to_protocol_sync::<fkernel::VmexResourceMarker>()
.expect("couldn't connect to fuchsia.kernel.VmexResource")
.get(zx::Time::INFINITE)
.expect("couldn't talk to fuchsia.kernel.VmexResource")
});