Module linux.socket

Linux kernel constants exposed under linux.socket.

Values are populated at build time from the kernel headers.

Tables

af Socket address families.
ipproto IP-layer protocol numbers.
layout Socket option payload layouts.
msg Message flags for send/recv.
so Socket-level option names (SO_*).
sock Socket types (SOCKSTREAM, SOCKDGRAM, ...).
sol Socket option levels (SOL_*).


Tables

af
Socket address families. Mirrors AF_* defines in <linux/socket.h>.
ipproto
IP-layer protocol numbers. Mirrors IPPROTO_* defines in <uapi/linux/in.h>.
layout
Socket option payload layouts. Layout descriptors (per-field offset/size/signedness) generated from <uapi/linux/time_types.h>; consume via require("struct").
msg
Message flags for send/recv. Mirrors MSG_* defines in <linux/socket.h>.
so
Socket-level option names (SO_*). Mirrors SO_* defines in <uapi/asm-generic/socket.h>.
sock
Socket types (SOCKSTREAM, SOCKDGRAM, ...). Mirrors SOCK_* defines in <linux/net.h>.
sol
Socket option levels (SOL_*). Mirrors SOL_* defines in <linux/socket.h>.
generated by LDoc 1.5.0 Last updated 2026-07-04 13:06:33