Zig 0.17.0-dev (Split by item) 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.
std › os › uefi › device_path › DevicePath › Messaging › InfiniBandDevicePath Public Struct InfiniBandDevicePath Doc Source Public Struct std.os.uefi.device_path.DevicePath.Messaging.InfiniBandDevicePath
pub const InfiniBandDevicePath = extern struct Fields Structs File os/uefi/device_path.zig: 619
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644 pub const InfiniBandDevicePath = extern struct {
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 ,
};
type : DevicePath .Type ,
subtype : Subtype ,
length : u16 align (1 ),
resource_flags : ResourceFlags align (1 ),
port_gid : [16 ]u8 ,
service_id : u64 align (1 ),
target_port_id : u64 align (1 ),
device_id : u64 align (1 ),
}