64-bit VFS_LSEEK_OFF
[minix3.git] / servers / inet / sr_int.h
blob4699c9da4ccc9b4a1e54a983dd7bcac5764a5619
1 /*
2 inet/sr_int.h
4 SR internals
6 Created: Aug 2004 by Philip Homburg <philip@f-mnx.phicoh.com>
7 */
9 #define FD_NR (16*IP_PORT_MAX)
11 typedef struct sr_fd
13 int srf_flags;
14 int srf_fd;
15 int srf_port;
16 endpoint_t 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;
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
47 EXTERN sr_fd_t sr_fd_table[FD_NR];
50 * $PchId: sr_int.h,v 1.2 2005/06/28 14:28:17 philip Exp $