1 | /* |
---|
2 | * Message Queue Manager |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1999. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/sysstate.h> |
---|
21 | #include <rtems/score/chain.h> |
---|
22 | #include <rtems/score/isr.h> |
---|
23 | #include <rtems/score/coremsg.h> |
---|
24 | #include <rtems/score/object.h> |
---|
25 | #include <rtems/score/states.h> |
---|
26 | #include <rtems/score/thread.h> |
---|
27 | #include <rtems/score/wkspace.h> |
---|
28 | #if defined(RTEMS_MULTIPROCESSING) |
---|
29 | #include <rtems/score/mpci.h> |
---|
30 | #endif |
---|
31 | #include <rtems/rtems/status.h> |
---|
32 | #include <rtems/rtems/attr.h> |
---|
33 | #include <rtems/rtems/message.h> |
---|
34 | #include <rtems/rtems/options.h> |
---|
35 | #include <rtems/rtems/support.h> |
---|
36 | |
---|
37 | /*PAGE |
---|
38 | * |
---|
39 | * rtems_message_queue_send |
---|
40 | * |
---|
41 | * This routine implements the directives q_send. It sends a |
---|
42 | * message to the specified message queue. |
---|
43 | * |
---|
44 | * Input parameters: |
---|
45 | * id - pointer to message queue |
---|
46 | * buffer - pointer to message buffer |
---|
47 | * size - size of message to sent urgently |
---|
48 | * |
---|
49 | * Output parameters: |
---|
50 | * RTEMS_SUCCESSFUL - if successful |
---|
51 | * error code - if unsuccessful |
---|
52 | */ |
---|
53 | |
---|
54 | rtems_status_code rtems_message_queue_send( |
---|
55 | Objects_Id id, |
---|
56 | void *buffer, |
---|
57 | uint32_t size |
---|
58 | ) |
---|
59 | { |
---|
60 | return( _Message_queue_Submit(id, buffer, size, MESSAGE_QUEUE_SEND_REQUEST) ); |
---|
61 | } |
---|