SendSmallMsg

Sends a small message.

Synopsis

Err SendSmallMsg( Item mp, Item msg, uint32 val1, uint32 val2 )

Description

This procedure sends a small message (a message that contains no more than eight bytes of data) to the specified message port. (To send a standard or buffered message, use SendMsg().) This routine is identical to SendMsg(). It is provided only to avoid having to cast uint32 to the types needed by SendMsg().

Arguments

mp
The item number of the message port to which to send the message
msg
The item number of the message to send.
val1
The first four bytes of message data. This data is put into the msg_DataPtr field of the message structure.
val2
The last four bytes of message data. This data is put into the msg_DataSize field of the message structure.

Return Value

The procedure returns 0 if the message is sent successfully or an error code if an error occurs.

Implementation

SWI implemented in kernel folio V20.

Associated Files

msgport.h
ANSI C Prototype

See Also

GetMsg(), GetThisMsg(), ReplyMsg(), ReplySmallMsg(), SendMsg(), WaitPort()