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

vm

Public Struct
std.os.linux.sockaddr.vm
pub const vm = extern struct

Address structure for vSockets

Fields

family: sa_family_t = AF.VSOCK
reserved1: u16 = 0
port: u32
cid: u32
flags: u8
zero: [3]u8 = @splat(0)

The total size of this structure should be exactly the same as that of struct sockaddr.

File

os/linux.zig:6856
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
    pub const vm = extern struct {
        family: sa_family_t = AF.VSOCK,
        reserved1: u16 = 0,
        port: u32,
        cid: u32,
        flags: u8,

        /// The total size of this structure should be exactly the same as that of struct sockaddr.
        zero: [3]u8 = @splat(0),
        comptime {
            std.debug.assert(@sizeOf(vm) == @sizeOf(sockaddr));
        }
    }