Skip to main content

debuglog_types/
debuglog_types.rs

1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file is automatically generated by //zircon/kernel/lib/debuglog:_kernel_bindgen_crate.debuglog-types.bindgen.
6
7#![expect(non_camel_case_types)]
8#![no_std]
9
10pub type zx_instant_boot_t = i64;
11#[repr(C)]
12#[derive(
13    Debug,
14    Default,
15    Copy,
16    Clone,
17    zerocopy :: FromBytes,
18    zerocopy :: IntoBytes,
19    zerocopy :: KnownLayout,
20    zerocopy :: Immutable,
21)]
22pub struct dlog_header {
23    pub preamble: u32,
24    pub datalen: u16,
25    pub severity: u8,
26    pub flags: u8,
27    pub timestamp: zx_instant_boot_t,
28    pub pid: u64,
29    pub tid: u64,
30    pub sequence: u64,
31}
32pub type dlog_header_t = dlog_header;
33pub const DLOG_MAX_RECORD: usize = 256;
34pub const DLOG_MAX_DATA: usize = 216;
35#[repr(C)]
36#[derive(
37    Debug,
38    Copy,
39    Clone,
40    zerocopy :: FromBytes,
41    zerocopy :: IntoBytes,
42    zerocopy :: KnownLayout,
43    zerocopy :: Immutable,
44)]
45pub struct dlog_record {
46    pub hdr: dlog_header_t,
47    pub data: [::core::ffi::c_char; 216usize],
48}
49impl Default for dlog_record {
50    fn default() -> Self {
51        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
52        unsafe {
53            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
54            s.assume_init()
55        }
56    }
57}
58pub type dlog_record_t = dlog_record;