Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/drivers/android/binder/trace.rs
29519 views
1
// SPDX-License-Identifier: GPL-2.0
2
3
// Copyright (C) 2025 Google LLC.
4
5
use kernel::ffi::{c_uint, c_ulong};
6
use kernel::tracepoint::declare_trace;
7
8
declare_trace! {
9
unsafe fn rust_binder_ioctl(cmd: c_uint, arg: c_ulong);
10
}
11
12
#[inline]
13
pub(crate) fn trace_ioctl(cmd: u32, arg: usize) {
14
// SAFETY: Always safe to call.
15
unsafe { rust_binder_ioctl(cmd, arg as c_ulong) }
16
}
17
18