'\" t .\" Title: lock_sock_fast .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "LOCK_SOCK_FAST" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" lock_sock_fast \- fast version of lock_sock .SH "SYNOPSIS" .HP \w'bool\ lock_sock_fast('u .BI "bool lock_sock_fast(struct\ sock\ *\ " "sk" ");" .SH "ARGUMENTS" .PP \fIsk\fR .RS 4 socket .RE .SH "DESCRIPTION" .PP This version should be used for very small section, where process wont block return false if fast path is taken sk_lock\&.slock locked, owned = 0, BH disabled return true if slow path is taken sk_lock\&.slock unlocked, owned = 1, BH enabled .SH "COPYRIGHT" .br