This commit also converts our own copyright headers to directly use SPDX, but leaves all other copyright header intact, only adding the SPDX ident. As far as possible this commit also merges multiple Data61 copyright statements/headers into one for consistency.
25 lines
759 B
C
25 lines
759 B
C
/*
|
|
* Copyright 2014, General Dynamics C4 Systems
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#ifndef __OBJECT_NOTIFICATION_H
|
|
#define __OBJECT_NOTIFICATION_H
|
|
|
|
#include <types.h>
|
|
#include <object/structures.h>
|
|
|
|
void sendSignal(notification_t *ntfnPtr, word_t badge);
|
|
void receiveSignal(tcb_t *thread, cap_t cap, bool_t isBlocking);
|
|
void cancelAllSignals(notification_t *ntfnPtr);
|
|
void cancelSignal(tcb_t *threadPtr, notification_t *ntfnPtr);
|
|
void completeSignal(notification_t *ntfnPtr, tcb_t *tcb);
|
|
void unbindMaybeNotification(notification_t *ntfnPtr);
|
|
void unbindNotification(tcb_t *tcb);
|
|
void bindNotification(tcb_t *tcb, notification_t *ntfnPtr);
|
|
#ifdef CONFIG_KERNEL_MCS
|
|
void reorderNTFN(notification_t *notification, tcb_t *thread);
|
|
#endif
|
|
|
|
#endif
|