Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
af_unix.h File Reference
#include <linux/socket.h>
#include <linux/un.h>
#include <linux/mutex.h>
#include <net/sock.h>

Go to the source code of this file.

Data Structures

struct  unix_address
 
struct  unix_skb_parms
 
struct  unix_sock
 

Macros

#define UNIX_HASH_SIZE   256
 
#define UNIX_HASH_BITS   8
 
#define UNIXCB(skb)   (*(struct unix_skb_parms *)&((skb)->cb))
 
#define UNIXSID(skb)   (&UNIXCB((skb)).secid)
 
#define unix_state_lock(s)   spin_lock(&unix_sk(s)->lock)
 
#define unix_state_unlock(s)   spin_unlock(&unix_sk(s)->lock)
 
#define unix_state_lock_nested(s)
 
#define unix_sk(__sk)   ((struct unix_sock *)__sk)
 
#define peer_wait   peer_wq.wait
 

Functions

void unix_inflight (struct file *fp)
 
void unix_notinflight (struct file *fp)
 
void unix_gc (void)
 
void wait_for_unix_gc (void)
 
struct sockunix_get_socket (struct file *filp)
 
struct sockunix_peer_get (struct sock *)
 
long unix_inq_len (struct sock *sk)
 
long unix_outq_len (struct sock *sk)
 

Variables

unsigned int unix_tot_inflight
 
spinlock_t unix_table_lock
 
struct hlist_head unix_socket_table [2 *UNIX_HASH_SIZE]
 

Macro Definition Documentation

#define peer_wait   peer_wq.wait

Definition at line 67 of file af_unix.h.

#define UNIX_HASH_BITS   8

Definition at line 17 of file af_unix.h.

#define UNIX_HASH_SIZE   256

Definition at line 16 of file af_unix.h.

#define unix_sk (   __sk)    ((struct unix_sock *)__sk)

Definition at line 65 of file af_unix.h.

#define unix_state_lock (   s)    spin_lock(&unix_sk(s)->lock)

Definition at line 42 of file af_unix.h.

#define unix_state_lock_nested (   s)
Value:

Definition at line 44 of file af_unix.h.

#define unix_state_unlock (   s)    spin_unlock(&unix_sk(s)->lock)

Definition at line 43 of file af_unix.h.

#define UNIXCB (   skb)    (*(struct unix_skb_parms *)&((skb)->cb))

Definition at line 39 of file af_unix.h.

#define UNIXSID (   skb)    (&UNIXCB((skb)).secid)

Definition at line 40 of file af_unix.h.

Function Documentation

void unix_gc ( void  )

Definition at line 276 of file garbage.c.

struct sock* unix_get_socket ( struct file filp)
read

Definition at line 99 of file garbage.c.

void unix_inflight ( struct file fp)

Definition at line 125 of file garbage.c.

long unix_inq_len ( struct sock sk)

Definition at line 2101 of file af_unix.c.

void unix_notinflight ( struct file fp)

Definition at line 142 of file garbage.c.

long unix_outq_len ( struct sock sk)

Definition at line 2125 of file af_unix.c.

struct sock* unix_peer_get ( struct sock )
read

Definition at line 187 of file af_unix.c.

void wait_for_unix_gc ( void  )

Definition at line 264 of file garbage.c.

Variable Documentation

struct hlist_head unix_socket_table[2 *UNIX_HASH_SIZE]

Definition at line 118 of file af_unix.c.

spinlock_t unix_table_lock
unsigned int unix_tot_inflight

Definition at line 96 of file garbage.c.