'\" t .\" Title: struct socket .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "STRUCT SOCKET" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_socket \- general BSD socket .SH "SYNOPSIS" .sp .nf struct socket { socket_state state; short type; unsigned long flags; struct socket_wq __rcu * wq; struct file * file; struct sock * sk; const struct proto_ops * ops; }; .fi .SH "MEMBERS" .PP socket_state state .RS 4 socket state (\fBSS_CONNECTED\fR, etc) .RE .PP short type .RS 4 socket type (\fBSOCK_STREAM\fR, etc) .RE .PP unsigned long flags .RS 4 socket flags (\fBSOCK_NOSPACE\fR, etc) .RE .PP struct socket_wq __rcu * wq .RS 4 wait queue for several uses .RE .PP struct file * file .RS 4 File back pointer for gc .RE .PP struct sock * sk .RS 4 internal networking protocol agnostic socket representation .RE .PP const struct proto_ops * ops .RS 4 protocol specific socket operations .RE .SH "COPYRIGHT" .br