source: trunk/minix/servers/inet/sr_int.h@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.1 KB
Line 
1/*
2inet/sr_int.h
3
4SR internals
5
6Created: Aug 2004 by Philip Homburg <philip@f-mnx.phicoh.com>
7*/
8
9#define FD_NR (16*IP_PORT_MAX)
10
11typedef struct sr_fd
12{
13 int srf_flags;
14 int srf_fd;
15 int srf_port;
16 int srf_select_proc;
17 sr_open_t srf_open;
18 sr_close_t srf_close;
19 sr_write_t srf_write;
20 sr_read_t srf_read;
21 sr_ioctl_t srf_ioctl;
22 sr_cancel_t srf_cancel;
23 sr_select_t srf_select;
24 mq_t *srf_ioctl_q, *srf_ioctl_q_tail;
25 mq_t *srf_read_q, *srf_read_q_tail;
26 mq_t *srf_write_q, *srf_write_q_tail;
27 event_t srf_ioctl_ev;
28 event_t srf_read_ev;
29 event_t srf_write_ev;
30} sr_fd_t;
31
32# define SFF_FREE 0x00
33# define SFF_MINOR 0x01
34# define SFF_INUSE 0x02
35#define SFF_BUSY 0x1C
36# define SFF_IOCTL_IP 0x04
37# define SFF_READ_IP 0x08
38# define SFF_WRITE_IP 0x10
39#define SFF_SUSPENDED 0x1C0
40# define SFF_IOCTL_SUSP 0x40
41# define SFF_READ_SUSP 0x80
42# define SFF_WRITE_SUSP 0x100
43#define SFF_IOCTL_FIRST 0x200
44#define SFF_READ_FIRST 0x400
45#define SFF_WRITE_FIRST 0x800
46#define SFF_SELECT_R 0x1000
47#define SFF_SELECT_W 0x2000
48#define SFF_SELECT_X 0x4000
49
50EXTERN sr_fd_t sr_fd_table[FD_NR];
51
52/*
53 * $PchId: sr_int.h,v 1.2 2005/06/28 14:28:17 philip Exp $
54 */
Note: See TracBrowser for help on using the repository browser.