LOCK_SOCK_FAST

Section: Linux Networking (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

lock_sock_fast - fast version of lock_sock  

SYNOPSIS

bool lock_sock_fast(struct sock * sk);
 

ARGUMENTS

sk

socket
 

DESCRIPTION

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  

COPYRIGHT