Skip to main content

debuglog_types/
debuglog_bindings.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:debuglog-bindings.bindgen.
6
7#![expect(non_camel_case_types)]
8#![no_std]
9
10pub const ZX_LOG_FLAGS_MASK: u32 = 16;
11pub type zx_instant_boot_t = i64;
12#[repr(C)]
13#[derive(
14    Debug,
15    Default,
16    Copy,
17    Clone,
18    zerocopy :: FromBytes,
19    zerocopy :: IntoBytes,
20    zerocopy :: KnownLayout,
21    zerocopy :: Immutable,
22)]
23pub struct dlog_header {
24    pub preamble: u32,
25    pub datalen: u16,
26    pub severity: u8,
27    pub flags: u8,
28    pub timestamp: zx_instant_boot_t,
29    pub pid: u64,
30    pub tid: u64,
31    pub sequence: u64,
32}
33pub type dlog_header_t = dlog_header;
34pub const DLOG_MAX_RECORD: usize = 256;
35pub const DLOG_MAX_DATA: usize = 216;
36#[repr(C)]
37#[derive(
38    Debug,
39    Copy,
40    Clone,
41    zerocopy :: FromBytes,
42    zerocopy :: IntoBytes,
43    zerocopy :: KnownLayout,
44    zerocopy :: Immutable,
45)]
46pub struct dlog_record {
47    pub hdr: dlog_header_t,
48    pub data: [::core::ffi::c_char; 216usize],
49}
50impl Default for dlog_record {
51    fn default() -> Self {
52        let mut s = ::core::mem::MaybeUninit::<Self>::uninit();
53        unsafe {
54            ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
55            s.assume_init()
56        }
57    }
58}
59pub type dlog_record_t = dlog_record;