sr.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAX_IOCTL_S   512
#define SR_CANCEL_IOCTL   1
#define SR_CANCEL_READ   2
#define SR_CANCEL_WRITE   3
#define SR_SELECT_READ   0x01
#define SR_SELECT_WRITE   0x02
#define SR_SELECT_EXCEPTION   0x04
#define SR_SELECT_POLL   0x10

Typedefs

typedef int sr_open_t ARGS ((int port, int srfd, get_userdata_t get_userdata, put_userdata_t put_userdata, put_pkt_t put_pkt, select_res_t select_res))
typedef void sr_close_t ARGS ((int fd))
typedef int sr_read_t ARGS ((int fd, size_t count))
typedef int sr_write_t ARGS ((int fd, size_t count))
typedef int sr_ioctl_t ARGS ((int fd, ioreq_t req))
typedef int sr_cancel_t ARGS ((int fd, int which_operation))
typedef int sr_select_t ARGS ((int fd, unsigned operations))

Functions

void sr_init ARGS ((void))
void sr_add_minor ARGS ((int minor, int port, sr_open_t openf, sr_close_t closef, sr_read_t sr_read, sr_write_t sr_write, sr_ioctl_t ioctlf, sr_cancel_t cancelf, sr_select_t selectf))

Variables

EXTERN sr_cancel_t tcp_cancel_f


Define Documentation

#define MAX_IOCTL_S   512
 

Definition at line 10 of file sr.h.

Referenced by sr_rwio().

#define SR_CANCEL_IOCTL   1
 

Definition at line 12 of file sr.h.

Referenced by eth_cancel(), ip_cancel(), psip_cancel(), sr_cancel(), tcp_cancel(), and udp_cancel().

#define SR_CANCEL_READ   2
 

Definition at line 13 of file sr.h.

Referenced by eth_cancel(), ip_cancel(), psip_cancel(), sr_cancel(), tcp_cancel(), and udp_cancel().

#define SR_CANCEL_WRITE   3
 

Definition at line 14 of file sr.h.

Referenced by eth_cancel(), ip_cancel(), psip_cancel(), sr_cancel(), tcp_cancel(), and udp_cancel().

#define SR_SELECT_EXCEPTION   0x04
 

Definition at line 18 of file sr.h.

Referenced by sr_select(), sr_select_res(), and udp_select().

#define SR_SELECT_POLL   0x10
 

Definition at line 19 of file sr.h.

Referenced by sr_select(), and udp_select().

#define SR_SELECT_READ   0x01
 

Definition at line 16 of file sr.h.

Referenced by sr_select(), sr_select_res(), tcp_rsel_read(), tcp_select(), udp_rd_enqueue(), and udp_select().

#define SR_SELECT_WRITE   0x02
 

Definition at line 17 of file sr.h.

Referenced by sr_select(), sr_select_res(), tcp_rsel_write(), and udp_select().


Typedef Documentation

typedef int sr_select_t ARGS((int fd, unsigned operations))
 

Definition at line 35 of file sr.h.

typedef int sr_cancel_t ARGS((int fd, int which_operation))
 

Definition at line 34 of file sr.h.

typedef int sr_ioctl_t ARGS((int fd, ioreq_t req))
 

Definition at line 33 of file sr.h.

typedef int sr_write_t ARGS((int fd, size_t count))
 

Definition at line 32 of file sr.h.

typedef int sr_read_t ARGS((int fd, size_t count))
 

Definition at line 31 of file sr.h.

typedef void sr_close_t ARGS((int fd))
 

Definition at line 30 of file sr.h.

typedef int sr_open_t ARGS((int port, int srfd,get_userdata_t get_userdata, put_userdata_t put_userdata,put_pkt_t put_pkt, select_res_t select_res))
 

Definition at line 27 of file sr.h.


Function Documentation

void sr_add_minor ARGS (int minor, int port, sr_open_t openf, sr_close_t closef, sr_read_t sr_read, sr_write_t sr_write, sr_ioctl_t ioctlf, sr_cancel_t cancelf, sr_select_t selectf)   ) 
 

void sr_init ARGS (void)   ) 
 


Variable Documentation

EXTERN sr_cancel_t tcp_cancel_f
 

Definition at line 45 of file sr.h.


Generated on Fri Apr 14 23:21:25 2006 for minix by  doxygen 1.4.6