1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-FileCopyrightText: 2026 JC-Lab <joseph@jc-lab.net>
//
// SPDX-License-Identifier: Apache-2.0
//! Filter IRP helpers.
//!
//! For now read/write are forwarded unchanged (transparent pass-through). The
//! AES-XTS interception (decrypt on read completion, encrypt via a shadow buffer
//! on write) will be layered on top of this.
use ;
/// Forward `irp` to `lower_device` without consuming a stack location of our
/// own (we did not allocate one for it).
///
/// # Safety
/// `irp` must be a valid IRP currently owned by this driver, and `lower_device`
/// the device immediately below the filter.
pub unsafe
/// Equivalent of the `IoSkipCurrentIrpStackLocation` macro: reuse the current
/// stack location for the next (lower) driver.
unsafe