blob: 5e50f8a20deedbd934de30994102ca23373d8e1d [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 fuchsia.scheduler;
using zx;
// Corresponds to zx_cpu_set_t.
struct CpuSet {
array<uint64>:8 mask;
};
[Discoverable, Layout = "Simple"]
protocol ProfileProvider {
/// Obtain a profile handle.
GetProfile(uint32 priority, string:64 name) -> (zx.status status, handle<profile>? profile);
/// Obtain a deadline profile handle.
GetDeadlineProfile(uint64 capacity, uint64 deadline, uint64 period, string:64 name)
-> (zx.status status, handle<profile>? profile);
// Obtain a handle for a profile that sets CPU affinity.
GetCpuAffinityProfile(CpuSet cpu_mask) -> (zx.status status, handle<profile>? profile);
};