blob: 71355842ab8a2e4df8d169a41d4b7efa9d28e646 [file] [log] [blame]
// Copyright 2020 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 fuchsia.sys.internal;
using zx;
[Discoverable]
// Provides introspection information about components in appmgr.
protocol Introspect {
// Finds the component whose job contains `process_koid`.
// Returns component's source identity.
// Errors:
// - `ZX_ERR_NOT_FOUND`: If process_koid is not found in the component tree.
// - `ZX_ERR_INTERNAL`: Error occurred during component tree parsing.
FindComponentByProcessKoid(zx.koid process_koid) -> (SourceIdentity component_info) error zx.status;
};