Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
af_iucv.h File Reference
#include <asm/types.h>
#include <asm/byteorder.h>
#include <linux/list.h>
#include <linux/poll.h>
#include <linux/socket.h>
#include <net/iucv/iucv.h>

Go to the source code of this file.

Data Structures

struct  sockaddr_iucv
 
struct  sock_msg_q
 
struct  af_iucv_trans_hdr
 
struct  iucv_sock
 
struct  iucv_sock_list
 

Macros

#define AF_IUCV   32
 
#define PF_IUCV   AF_IUCV
 
#define IUCV_QUEUELEN_DEFAULT   65535
 
#define IUCV_HIPER_MSGLIM_DEFAULT   128
 
#define IUCV_CONN_TIMEOUT   (HZ * 40)
 
#define IUCV_DISCONN_TIMEOUT   (HZ * 2)
 
#define IUCV_CONN_IDLE_TIMEOUT   (HZ * 60)
 
#define IUCV_BUFSIZE_DEFAULT   32768
 
#define AF_IUCV_FLAG_ACK   0x1
 
#define AF_IUCV_FLAG_SYN   0x2
 
#define AF_IUCV_FLAG_FIN   0x4
 
#define AF_IUCV_FLAG_WIN   0x8
 
#define AF_IUCV_FLAG_SHT   0x10
 
#define iucv_sk(__sk)   ((struct iucv_sock *) __sk)
 
#define AF_IUCV_TRANS_IUCV   0
 
#define AF_IUCV_TRANS_HIPER   1
 
#define SO_IPRMDATA_MSG   0x0080 /* send/recv IPRM_DATA msgs */
 
#define SO_MSGLIMIT   0x1000 /* get/set IUCV MSGLIMIT */
 
#define SO_MSGSIZE   0x0800 /* get maximum msgsize */
 
#define SCM_IUCV_TRGCLS   0x0001 /* target class control message */
 

Enumerations

enum  {
  IUCV_CONNECTED = 1, IUCV_OPEN, IUCV_BOUND, IUCV_LISTEN,
  IUCV_DISCONN, IUCV_CLOSING, IUCV_CLOSED
}
 
enum  iucv_tx_notify {
  TX_NOTIFY_OK = 0, TX_NOTIFY_UNREACHABLE = 1, TX_NOTIFY_TPQFULL = 2, TX_NOTIFY_GENERALERROR = 3,
  TX_NOTIFY_PENDING = 4, TX_NOTIFY_DELAYED_OK = 5, TX_NOTIFY_DELAYED_UNREACHABLE = 6, TX_NOTIFY_DELAYED_GENERALERROR = 7
}
 

Functions

unsigned int iucv_sock_poll (struct file *file, struct socket *sock, poll_table *wait)
 
void iucv_sock_link (struct iucv_sock_list *l, struct sock *s)
 
void iucv_sock_unlink (struct iucv_sock_list *l, struct sock *s)
 
void iucv_accept_enqueue (struct sock *parent, struct sock *sk)
 
void iucv_accept_unlink (struct sock *sk)
 
struct sockiucv_accept_dequeue (struct sock *parent, struct socket *newsock)
 

Variables

struct af_iucv_trans_hdr __packed
 

Macro Definition Documentation

#define AF_IUCV   32

Definition at line 20 of file af_iucv.h.

#define AF_IUCV_FLAG_ACK   0x1

Definition at line 61 of file af_iucv.h.

#define AF_IUCV_FLAG_FIN   0x4

Definition at line 63 of file af_iucv.h.

#define AF_IUCV_FLAG_SHT   0x10

Definition at line 65 of file af_iucv.h.

#define AF_IUCV_FLAG_SYN   0x2

Definition at line 62 of file af_iucv.h.

#define AF_IUCV_FLAG_WIN   0x8

Definition at line 64 of file af_iucv.h.

#define AF_IUCV_TRANS_HIPER   1

Definition at line 105 of file af_iucv.h.

#define AF_IUCV_TRANS_IUCV   0

Definition at line 104 of file af_iucv.h.

#define IUCV_BUFSIZE_DEFAULT   32768

Definition at line 40 of file af_iucv.h.

#define IUCV_CONN_IDLE_TIMEOUT   (HZ * 60)

Definition at line 39 of file af_iucv.h.

#define IUCV_CONN_TIMEOUT   (HZ * 40)

Definition at line 37 of file af_iucv.h.

#define IUCV_DISCONN_TIMEOUT   (HZ * 2)

Definition at line 38 of file af_iucv.h.

#define IUCV_HIPER_MSGLIM_DEFAULT   128

Definition at line 36 of file af_iucv.h.

#define IUCV_QUEUELEN_DEFAULT   65535

Definition at line 35 of file af_iucv.h.

#define iucv_sk (   __sk)    ((struct iucv_sock *) __sk)

Definition at line 102 of file af_iucv.h.

#define PF_IUCV   AF_IUCV

Definition at line 21 of file af_iucv.h.

#define SCM_IUCV_TRGCLS   0x0001 /* target class control message */

Definition at line 139 of file af_iucv.h.

#define SO_IPRMDATA_MSG   0x0080 /* send/recv IPRM_DATA msgs */

Definition at line 134 of file af_iucv.h.

#define SO_MSGLIMIT   0x1000 /* get/set IUCV MSGLIMIT */

Definition at line 135 of file af_iucv.h.

#define SO_MSGSIZE   0x0800 /* get maximum msgsize */

Definition at line 136 of file af_iucv.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
IUCV_CONNECTED 
IUCV_OPEN 
IUCV_BOUND 
IUCV_LISTEN 
IUCV_DISCONN 
IUCV_CLOSING 
IUCV_CLOSED 

Definition at line 25 of file af_iucv.h.

Enumerator:
TX_NOTIFY_OK 
TX_NOTIFY_UNREACHABLE 
TX_NOTIFY_TPQFULL 
TX_NOTIFY_GENERALERROR 
TX_NOTIFY_PENDING 
TX_NOTIFY_DELAYED_OK 
TX_NOTIFY_DELAYED_UNREACHABLE 
TX_NOTIFY_DELAYED_GENERALERROR 

Definition at line 82 of file af_iucv.h.

Function Documentation

struct sock* iucv_accept_dequeue ( struct sock parent,
struct socket newsock 
)
read

Definition at line 663 of file af_iucv.c.

void iucv_accept_enqueue ( struct sock parent,
struct sock sk 
)

Definition at line 637 of file af_iucv.c.

void iucv_accept_unlink ( struct sock sk)

Definition at line 650 of file af_iucv.c.

void iucv_sock_link ( struct iucv_sock_list l,
struct sock s 
)

Definition at line 623 of file af_iucv.c.

unsigned int iucv_sock_poll ( struct file file,
struct socket sock,
poll_table wait 
)

Definition at line 1455 of file af_iucv.c.

void iucv_sock_unlink ( struct iucv_sock_list l,
struct sock s 
)

Definition at line 630 of file af_iucv.c.

Variable Documentation