lock_sock_fast
Prev | Socket Buffer Functions | Next

## 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

Prev | Up | Next
__sk_mem_reclaim | Home | __skb_recv_datagram