Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

ResourceFlags

Public Struct
std.os.uefi.device_path.DevicePath.Messaging.InfiniBandDevicePath.ResourceFlags
pub const ResourceFlags = packed struct(u32)

Fields

ioc_or_service: ControllerType
extend_boot_environment: bool
console_protocol: bool
storage_protocol: bool
network_protocol: bool
reserved: u27

u1 + 4 * bool = 5 bits, we need a total of 32 bits

Types

File

os/uefi/device_path.zig:620
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
            pub const ResourceFlags = packed struct(u32) {
                pub const ControllerType = enum(u1) {
                    ioc = 0,
                    service = 1,
                };

                ioc_or_service: ControllerType,
                extend_boot_environment: bool,
                console_protocol: bool,
                storage_protocol: bool,
                network_protocol: bool,

                // u1 + 4 * bool = 5 bits, we need a total of 32 bits
                reserved: u27,
            }