• Home
  • Raw
  • Download

Lines Matching +full:loss +full:- +full:of +full:- +full:signal

2  * Copyright (c) 2022-2022 Huawei Device Co., Ltd. All rights reserved.
7 * 1. Redistributions of source code must retain the above copyright notice, this list of
11 * of conditions and the following disclaimer in the documentation and/or other materials
14 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
20 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 #include <signal.h>
45 * Signal error code: The parameters of interface is error.
54 * Signal error code: The memory requests failed.
63 * Signal error code: The signal is not set.
72 * Signal error code: Waiting for signal timeout.
81 * Signal error code: The interface is used before system start.
90 * Mutex error code: Waiting for signal in interrupt callback.
99 * Add the signal num to the signal set.
101 #define LOS_SIGNAL_MASK(sigNo) (1U << ((sigNo) - 1))
105 * Maximum signal supported num.
111 * Signal handler type.
119 siginfo_t sigInfo; /**< signal info */
120 SIG_HANDLER sigHandlers[LOS_SIGNAL_SUPPORT_MAX + 1]; /**< signal handler */
121 LOS_DL_LIST sigInfoList; /**< signal info list */
124 UINT32 sigStatus; /**< status of signal */
140 * @brief Register the handler for the specified signal.
143 …* This API is used to register the handler for the specified signal, otherwise it is the default h…
147 * @param sigNo [IN] The specified signal num.
148 * @param handler [IN] The handler for this signal, which is either SIG_IGN, SIG_DFL,
149 * or the address of a programmer-defined function.
160 * @brief Shield the specified signal set.
163 * This API is used to shield the specified signal set and get the current signal set.
167 …* @param how [IN] The behavior of the call is dependent on the value of how, which is either SI…
169 * @param set [IN] The new signal set.
170 * @param oldSet [OUT] The old signal set.
174 * @retval: LOS_ERRNO_SIGNAL_INVALID Type#UINT32: The parameters of interface is error.
183 * @brief Suspend execution of the calling thread until one of the signals specified in
184 * the signal set becomes pending.
187 * This API is used to suspend execution of the calling thread until one of the signals
188 * specified in the signal set becomes pending and return the signal number in sig.
192 * @param set [IN] The specified signal set which waiting for.
193 * @param info [OUT] The info of signal becomes pending.
196 * @retval: LOS_ERRNO_SIGNAL_INVALID Type#UINT32: The parameters of interface is error.
199 * @retval: LOS_ERRNO_SIGNAL_PEND_INTERR Type#UINT32: Waiting for signal in interrupt callback.
200 * @retval: LOS_ERRNO_SIGNAL_TIMEOUT Type#UINT32: Waiting for signal timeout.
201 * @retval: signo Type#UINT32: success, returning the signal num which becomes pending.
209 * @brief Send the specified signal to the specified task.
212 * This API is used to send the specified signal to the specified task.
216 * @param taskID [IN] Send a signal to this task.
217 * @param sigNo [IN] The signal num.
220 * @retval: LOS_ERRNO_SIGNAL_INVALID Type#UINT32: The parameters of interface is error.
221 * @retval: LOS_ERRNO_SIGNAL_NO_SET Type#UINT32: The signal is not set.