1 /***************************************************************************
2 * Copyright (c) 2024 Microsoft Corporation
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the MIT License which is available at
6 * https://opensource.org/licenses/MIT.
7 *
8 * SPDX-License-Identifier: MIT
9 **************************************************************************/
10
11
12 /**************************************************************************/
13 /**************************************************************************/
14 /** */
15 /** ThreadX Component */
16 /** */
17 /** Module */
18 /** */
19 /**************************************************************************/
20 /**************************************************************************/
21
22 #define TXM_MODULE
23 #include "txm_module.h"
24 #ifndef TXM_QUEUE_SEND_NOTIFY_CALL_NOT_USED
25 /**************************************************************************/
26 /* */
27 /* FUNCTION RELEASE */
28 /* */
29 /* _txe_queue_send_notify PORTABLE C */
30 /* 6.1.10 */
31 /* AUTHOR */
32 /* */
33 /* Scott Larson, Microsoft Corporation */
34 /* */
35 /* DESCRIPTION */
36 /* */
37 /* This function checks for errors in the queue send notify */
38 /* callback function call. */
39 /* */
40 /* INPUT */
41 /* */
42 /* queue_ptr Pointer to queue control block*/
43 /* queue_send_notify Application callback function */
44 /* (TX_NULL disables notify) */
45 /* */
46 /* OUTPUT */
47 /* */
48 /* status Completion status */
49 /* */
50 /* CALLS */
51 /* */
52 /* _txm_module_kernel_call_dispatcher */
53 /* */
54 /* CALLED BY */
55 /* */
56 /* Module application code */
57 /* */
58 /* RELEASE HISTORY */
59 /* */
60 /* DATE NAME DESCRIPTION */
61 /* */
62 /* 09-30-2020 Scott Larson Initial Version 6.1 */
63 /* 01-31-2022 Scott Larson Modified comments and added */
64 /* CALL_NOT_USED option, */
65 /* resulting in version 6.1.10 */
66 /* */
67 /**************************************************************************/
_txe_queue_send_notify(TX_QUEUE * queue_ptr,VOID (* queue_send_notify)(TX_QUEUE * notify_queue_ptr))68 UINT _txe_queue_send_notify(TX_QUEUE *queue_ptr, VOID (*queue_send_notify)(TX_QUEUE *notify_queue_ptr))
69 {
70
71 UINT return_value;
72
73 /* Call module manager dispatcher. */
74 return_value = (UINT) (_txm_module_kernel_call_dispatcher)(TXM_QUEUE_SEND_NOTIFY_CALL, (ALIGN_TYPE) queue_ptr, (ALIGN_TYPE) queue_send_notify, 0);
75
76 /* Return value to the caller. */
77 return(return_value);
78 }
79 #endif
80