2005-04-21 16:53:53 +02:00
|
|
|
/*
|
|
|
|
inet/mq.h
|
|
|
|
|
|
|
|
Created: Jan 3, 1992 by Philip Homburg
|
|
|
|
|
|
|
|
Copyright 1995 Philip Homburg
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INET__MQ_H
|
|
|
|
#define INET__MQ_H
|
|
|
|
|
2013-09-09 16:53:28 +02:00
|
|
|
#include <minix/chardriver.h>
|
|
|
|
|
|
|
|
typedef struct sr_req {
|
|
|
|
enum {
|
|
|
|
SRR_READ,
|
|
|
|
SRR_WRITE,
|
|
|
|
SRR_IOCTL
|
|
|
|
} srr_type;
|
|
|
|
devminor_t srr_minor;
|
|
|
|
endpoint_t srr_endpt;
|
|
|
|
cp_grant_id_t srr_grant;
|
|
|
|
union {
|
|
|
|
size_t srr_size; /* for SRR_READ, SRR_WRITE */
|
|
|
|
unsigned long srr_req; /* for SRR_IOCTL */
|
|
|
|
};
|
|
|
|
int srr_flags;
|
|
|
|
cdev_id_t srr_id;
|
|
|
|
} sr_req_t;
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
typedef struct mq
|
|
|
|
{
|
2013-09-09 16:53:28 +02:00
|
|
|
sr_req_t mq_req;
|
2005-04-21 16:53:53 +02:00
|
|
|
struct mq *mq_next;
|
|
|
|
int mq_allocated;
|
|
|
|
} mq_t;
|
|
|
|
|
2012-03-24 16:16:34 +01:00
|
|
|
mq_t *mq_get(void);
|
|
|
|
void mq_free(mq_t *mq);
|
|
|
|
void mq_init(void);
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
#endif /* INET__MQ_H */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* $PchId: mq.h,v 1.4 1995/11/21 06:40:30 philip Exp $
|
|
|
|
*/
|