Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
af_unix.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <linux/dcache.h>
#include <linux/namei.h>
#include <linux/socket.h>
#include <linux/un.h>
#include <linux/fcntl.h>
#include <linux/termios.h>
#include <linux/sockios.h>
#include <linux/net.h>
#include <linux/in.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <net/net_namespace.h>
#include <net/sock.h>
#include <net/tcp_states.h>
#include <net/af_unix.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <net/scm.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/rtnetlink.h>
#include <linux/mount.h>
#include <net/checksum.h>
#include <linux/security.h>

Go to the source code of this file.

Macros

#define UNIX_ABSTRACT(sk)   (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE)
 
#define unix_peer(sk)   (unix_sk(sk)->peer)
 
#define MAX_RECURSION_LEVEL   4
 

Functions

 EXPORT_SYMBOL_GPL (unix_socket_table)
 
 DEFINE_SPINLOCK (unix_table_lock)
 
 EXPORT_SYMBOL_GPL (unix_table_lock)
 
struct sockunix_peer_get (struct sock *s)
 
 EXPORT_SYMBOL_GPL (unix_peer_get)
 
long unix_inq_len (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (unix_inq_len)
 
long unix_outq_len (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (unix_outq_len)
 
 fs_initcall (af_unix_init)
 
 module_exit (af_unix_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NETPROTO (PF_UNIX)
 

Variables

struct hlist_head unix_socket_table [2 *UNIX_HASH_SIZE]
 

Macro Definition Documentation

#define MAX_RECURSION_LEVEL   4

Definition at line 1356 of file af_unix.c.

#define UNIX_ABSTRACT (   sk)    (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE)

Definition at line 135 of file af_unix.c.

#define unix_peer (   sk)    (unix_sk(sk)->peer)

Definition at line 170 of file af_unix.c.

Function Documentation

DEFINE_SPINLOCK ( unix_table_lock  )
EXPORT_SYMBOL_GPL ( unix_socket_table  )
EXPORT_SYMBOL_GPL ( unix_table_lock  )
EXPORT_SYMBOL_GPL ( unix_peer_get  )
EXPORT_SYMBOL_GPL ( unix_inq_len  )
EXPORT_SYMBOL_GPL ( unix_outq_len  )
fs_initcall ( af_unix_init  )
MODULE_ALIAS_NETPROTO ( PF_UNIX  )
module_exit ( af_unix_exit  )
MODULE_LICENSE ( "GPL"  )
long unix_inq_len ( struct sock sk)

Definition at line 2101 of file af_unix.c.

long unix_outq_len ( struct sock sk)

Definition at line 2125 of file af_unix.c.

struct sock* unix_peer_get ( struct sock s)
read

Definition at line 187 of file af_unix.c.

Variable Documentation

struct hlist_head unix_socket_table[2 *UNIX_HASH_SIZE]

Definition at line 118 of file af_unix.c.