summaryrefslogtreecommitdiff
path: root/nuttx/sched/mq_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 21:17:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 21:17:21 +0000
commit148cde5e982950ad5836fa96baa466de842e1c14 (patch)
treebf737b367b91c5da81345eb21016b07400d7a72f /nuttx/sched/mq_internal.h
parentf6b81a790c28d7d36d9de33810df5270c1ebbfd7 (diff)
downloadpx4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.gz
px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.bz2
px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.zip
Finally, a clean SDCC compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@20 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/mq_internal.h')
-rw-r--r--nuttx/sched/mq_internal.h55
1 files changed, 27 insertions, 28 deletions
diff --git a/nuttx/sched/mq_internal.h b/nuttx/sched/mq_internal.h
index ba2368e43..4e55a9316 100644
--- a/nuttx/sched/mq_internal.h
+++ b/nuttx/sched/mq_internal.h
@@ -95,13 +95,12 @@ struct mqmsg
* MQ_type.
*/
- struct mqmsg *next; /* Forward link to next message */
- ubyte type; /* (Used to manage allocations) */
+ FAR struct mqmsg *next; /* Forward link to next message */
+ ubyte type; /* (Used to manage allocations) */
- ubyte priority; /* priority of message */
- ubyte msglen; /* Message data length */
- ubyte pad; /* Not used */
- uint16 mail[MQ_MAX_HWORDS]; /* Message data */
+ ubyte priority; /* priority of message */
+ ubyte msglen; /* Message data length */
+ uint16 mail[MQ_MAX_HWORDS]; /* Message data */
};
typedef struct mqmsg mqmsg_t;
@@ -111,20 +110,20 @@ struct mq_des; /* forward reference */
struct msgq_s
{
- struct msgq_s *flink; /* Forward link to next message queue */
- sq_queue_t msglist; /* Prioritized message list */
- sint16 maxmsgs; /* Maximum number of messages in the queue */
- sint16 nmsgs; /* Number of message in the queue */
- sint16 nconnect; /* Number of connections to message queue */
- sint16 nwaitnotfull; /* Number tasks waiting for not full */
- sint16 nwaitnotempty; /* Number tasks waiting for not empty */
- ubyte maxmsgsize; /* Max size of message in message queue */
- boolean unlinked; /* TRUE if the msg queue has been unlinked */
- struct mq_des *ntmqdes; /* Notification: Owning mqdes (NULL if none) */
- pid_t ntpid; /* Notification: Receiving Task's PID */
- int ntsigno; /* Notification: Signal number */
- union sigval ntvalue; /* Notification: Signal value */
- char name[1]; /* Start of the queue name */
+ FAR struct msgq_s *flink; /* Forward link to next message queue */
+ sq_queue_t msglist; /* Prioritized message list */
+ sint16 maxmsgs; /* Maximum number of messages in the queue */
+ sint16 nmsgs; /* Number of message in the queue */
+ sint16 nconnect; /* Number of connections to message queue */
+ sint16 nwaitnotfull; /* Number tasks waiting for not full */
+ sint16 nwaitnotempty; /* Number tasks waiting for not empty */
+ ubyte maxmsgsize; /* Max size of message in message queue */
+ boolean unlinked; /* TRUE if the msg queue has been unlinked */
+ FAR struct mq_des *ntmqdes; /* Notification: Owning mqdes (NULL if none) */
+ pid_t ntpid; /* Notification: Receiving Task's PID */
+ int ntsigno; /* Notification: Signal number */
+ union sigval ntvalue; /* Notification: Signal value */
+ char name[1]; /* Start of the queue name */
};
#define SIZEOF_MQ_HEADER ((int)(((msgq_t*)NULL)->name))
@@ -135,9 +134,9 @@ struct msgq_s
struct mq_des
{
- struct mq_des *flink; /* Forward link to next message descriptor */
- msgq_t *msgq; /* Pointer to associated message queue */
- int oflags; /* Flags set when message queue was opened */
+ FAR struct mq_des *flink; /* Forward link to next message descriptor */
+ FAR msgq_t *msgq; /* Pointer to associated message queue */
+ int oflags; /* Flags set when message queue was opened */
};
/************************************************************
@@ -182,12 +181,12 @@ extern "C" {
/* Functions defined in mq_initialized.c *******************/
EXTERN void weak_function mq_initialize(void);
-EXTERN void mq_desblockalloc(void);
+EXTERN void mq_desblockalloc(void);
-EXTERN mqd_t mq_descreate(_TCB* mtcb, msgq_t* msgq, int oflags);
-EXTERN msgq_t *mq_findnamed(const char *mq_name);
-EXTERN void mq_msgfree(mqmsg_t *mqmsg);
-EXTERN void mq_msgqfree(msgq_t *msgq);
+EXTERN mqd_t mq_descreate(FAR _TCB* mtcb, FAR msgq_t* msgq, int oflags);
+EXTERN FAR msgq_t *mq_findnamed(const char *mq_name);
+EXTERN void mq_msgfree(FAR mqmsg_t *mqmsg);
+EXTERN void mq_msgqfree(FAR msgq_t *msgq);
#undef EXTERN
#ifdef __cplusplus